Points and Lines Drawing Tools

A simple code to implement points and point-to-point lines drawing in a figure.
428 Downloads
Updated 1 Jul 2013

View License

gpoints is the function for drawing points,
gsortline is the function for drawing lines (lines are drawn by points clicking and connected by smoothing), and
DrawGUI is a demo.

- mouse left click to add a point
- mouse left click on a point and hold to
- movemouse right click on a point to remove
- keyboard input "s" to save the drawing
- keyboard input "r" to reset the drawing to previous saving
keyboard input "Delete" to delete the drawing

Cite As

Marco Chak Yan Yu (2024). Points and Lines Drawing Tools (https://www.mathworks.com/matlabcentral/fileexchange/42429-points-and-lines-drawing-tools), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Interactive Control and Callbacks in Help Center and MATLAB Answers
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0