HOW CAN I CREATE REFERENCE AXES ON A 2D PLANE THAT ALLOWS ME TO DRAW AT THE INTERSECTIONS OF SUCH AXES?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Gabriela Alessandra
el 14 de Oct. de 2023
Comentada: Gabriela Alessandra
el 16 de Oct. de 2023
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 comentarios
Respuestas (2)
Adam Danz
el 14 de Oct. de 2023
Editada: Adam Danz
el 16 de Oct. de 2023
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 comentarios
Adam Danz
el 16 de Oct. de 2023
I've updated my answer to include two link to answers that may be helpful.
Image Analyst
el 14 de Oct. de 2023
Perhaps put the tick marks at the origin?
ax = gca
ax.XAxisLocation = 'origin';
ax.YAxisLocation = 'origin';
0 comentarios
Ver también
Categorías
Más información sobre Visual Exploration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!