Borrar filtros
Borrar filtros

GUI PLOTYY Drag Figure

2 visualizaciones (últimos 30 días)
T
T el 11 de Sept. de 2013
Hi,
suppose one plotted two functions using plotyy in a GUI. Suppose that one of these functions maybe shifted and the user would need to adjust it left or right. Does anyone know of any features that would allow the user to make such modifications? Or even drag the figure?
Thanks,

Respuesta aceptada

Jan
Jan el 12 de Sept. de 2013
Editada: Jan el 12 de Sept. de 2013
Dragging the figure is trivial by clicking with the mouse to the title bar and dragging it. But this does not concern the contents of the figure, so I do not see how this could affect the lines.
You can simply use the ButtonDownFcn of the lines. I assume moveobj can be applied directly, but I'm not sure about this.
Looking in the FileExchange is always a good idea. Searching for "drag line" you find e.g.

Más respuestas (0)

Categorías

Más información sobre Two y-axis en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by