- http://www.mathworks.com/matlabcentral/fileexchange/42284-drag-line-in-gui
- http://www.mathworks.com/matlabcentral/fileexchange/4179-draggable
- http://www.mathworks.com/matlabcentral/fileexchange/35438-drag-a-line-with-the-mouse
- http://www.mathworks.com/matlabcentral/fileexchange/33041-drag-and-dropline-objects
GUI PLOTYY Drag Figure
조회 수: 1 (최근 30일)
이전 댓글 표시
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,
댓글 수: 0
채택된 답변
Jan
2013년 9월 12일
편집: Jan
2013년 9월 12일
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.
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Two y-axis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!