addplot.m

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

You are now following this Submission

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://www.mathworks.com/matlabcentral/fileexchange/795-addplot-m), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
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