ErrorPlot - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Statistics

  

ErrorPlot

  

generate error plots

 

Calling Sequence

Parameters

Description

Options

Examples

Calling Sequence

ErrorPlot(X, options, plotoptions)

ErrorPlot['interactive'](X)

Parameters

X

-

data sample

options

-

(optional) equation(s) of the form option=value where option is one of colors, markers, xcoords, xerrors, or yerrors; specify options for generating the error plot

plotoptions

-

options to be passed to the plots[display] command

Description

• 

The ErrorPlot command plots points and absolute (horizontal or vertical) errors.

• 

The first parameter X is a data sample where each value corresponds to the y-coordinate to be plotted. The corresponding x-coordinates for data, unless specified as an option (see below), are 1, 2, 3, etc. If multiple data samples share the same x-coordinates, x-errors, and y-errors, you can supply these data samples in a list or as a Matrix (in which case, each column is viewed as a separate sample).

• 

If the ['interactive'] option is used, then a dialog box appears that allows for customized creation of the plot.

Options

  

The options argument can contain one or more of the options shown below. All unrecognized options will be passed to the plots[display] command. See plot/options for details.

• 

color=name, list, or range

  

This option specifies colors for the individual data sets. When a list of colors is given, each of the lines is colored with the corresponding color in the list. If a range of colors is given, the colors are be generated by selecting an appropriate number of equally spaced points in the corresponding hue range.

• 

markers=true or false

  

This option specifies whether the original data points appear on the plot. The default value is true.

• 

xcoords=default or data sample

  

This option specifies the x-coordinates of the data errors. By default, the x-coordinates of the errors are 1, 2, 3, etc.

• 

xerrors=data sample or list of two data samples

  

This options specifies errors along the x-axis. The array of errors must have the same number of elements. To specify right errors and left errors separately, use the list of two vectors.

• 

yerrors=data sample or list of two data samples

  

Similar to the xerrors option above.

Examples

withStatistics:

Aseqseqsin2πi50+j,i=1..15,j=1..5:

Bseq0.5,i=1..15:

Cseq0.5,i=1..15:

This is the command to create the plot from the Plotting Guide using the data above. It uses multiple data samples

ErrorPlotA,xerrors=B,yerrors=C

The same plot can be obtained by making A into a Matrix, rather than a list of Vectors.

MMatrixA

ErrorPlotM,xerrors=B,yerrors=C,color=Orange..Crimson

The same plot as above without markers:

ErrorPlotM,xerrors=B,yerrors=C,color=Orange..Crimson,markers=false

See Also

Statistics

Statistics/Visualization

Statistics[ScatterPlot]