addplot.m

Add and delete points from a data set graphically on a plot axes using the mouse.
5K Downloads
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 (2026). addplot.m (https://uk.mathworks.com/matlabcentral/fileexchange/795-addplot-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R12
Compatible with any release
Platform Compatibility
Windows macOS Linux
Version Published Release Notes
1.0.0.0

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