Add and delete points from a data set graphically on a plot axes using the mouse.


Updated 26 Jan 2004

View License

This function extends the functionality of moveplot.m. Invoke this function on an axes to enable the creation of data points for a line object by clicking on the axes. Use this program to build a data set graphically, from scratch. Points can be added by clicking on the axes, and deleted by right-clicking (or, for one-button mouse platforms, whatever you use to invoke a context menu). This function requires moveplot.m, also available from The MathWorks File Exchange.

Cite As

Brandon Kuczenski (2023). addplot.m (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Updated: line 47 in code; replaced 'break' with 'return' to avoid warning. Thanks to Patrick.Drechsler at biozentrum dot