Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Return identifying information about selected line in gui

조회 수: 1 (최근 30일)
Samuel
Samuel 2013년 6월 13일
마감: MATLAB Answer Bot 2021년 8월 20일
I have a gui which plots topography with surf() at a given location, and allows the user to trace multiple faults. The tracings are stored as [x y] datapoints returned from ginput(). Each set of datapoints, (a set corresponds to one fault trace) are stored in their own cell. When replotted, the contents of every cell are plotted with plot3() on top of the topographic surface, so that all fault traces are visible.
I want to be able to go back and edit traces I've already made, which requires somehow selecting traces. I could simply allow the user to use the arrow keys to cycle back and forth between cell indices and plot the selected trace in a different color.
However, I was wondering if its possible to mouse click one of the plotted lines and retrieve identifying information (a handle, the points plotted, etc) that would tell me which line was clicked.

답변 (0개)

제품

Community Treasure Hunt

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

Start Hunting!

Translated by