Snap function in the grid of the axes.

20 views (last 30 days)
Hello,
I'm working on a GUIDE where I insert a drawing area with axes.
Does anyone know how to insert the "Snap" function on the grid in this drawing area?
Sorry for the mistakes in English.
Alvaro Martins

Answers (1)

Walter Roberson
Walter Roberson on 14 Jan 2016
Axes do not have any snap property in MATLAB. You can set up snapping in your drawing routines. For example for imline() or any of the other imroi() based routines, see http://uk.mathworks.com/matlabcentral/answers/74507-imfreehand-or-imrect-snap-to-pixels-while-drawing

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!