HOW CAN I CREATE REFERENCE AXES ON A 2D PLANE THAT ALLOWS ME TO DRAW AT THE INTERSECTIONS OF SUCH AXES?
조회 수: 1 (최근 30일)
이전 댓글 표시
I want to draw with my mouse on a plane with help axes, because I cannot know at what exact coordinate my point will be drawn.
댓글 수: 2
답변 (2개)
Adam Danz
2023년 10월 14일
편집: Adam Danz
2023년 10월 16일
Does turning on the grid solve the problem?
grid on
Here are two demos that show how to display the cursor location when moving the cursor over axes
- https://www.mathworks.com/matlabcentral/answers/775147-how-to-create-mouse-movement-event-on-uiaxes-in-app-designer-to-catch-cursor-location-on-the-axes#answer_651357
- https://www.mathworks.com/matlabcentral/answers/548721-ginput-and-currentpoint-property-do-no-match-real-axes-coordinates#answer_451698
댓글 수: 3
Image Analyst
2023년 10월 14일
Perhaps put the tick marks at the origin?
ax = gca
ax.XAxisLocation = 'origin';
ax.YAxisLocation = 'origin';
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Visual Exploration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!