Close
Close window
ErrorPlot - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

Statistics

ErrorPlot

generate error plots

Calling Sequence

ErrorPlot(X, options, plotoptions)

ErrorPlot['interactive'](X)

Parameters

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 sample s

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 sample s

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 Vector s.

>

MMatrixA

Msinπ25+1sinπ25+2sinπ25+3sinπ25+4sinπ25+5sin2π25+1sin2π25+2sin2π25+3sin2π25+4sin2π25+5sin3π25+1sin3π25+2sin3π25+3sin3π25+4sin3π25+5sin4π25+1sin4π25+2sin4π25+3sin4π25+4sin4π25+5sinπ5+1sinπ5+2sinπ5+3sinπ5+4sinπ5+5sin6π25+1sin6π25+2sin6π25+3sin6π25+4sin6π25+5sin7π25+1sin7π25+2sin7π25+3sin7π25+4sin7π25+5sin8π25+1sin8π25+2sin8π25+3sin8π25+4sin8π25+5sin9π25+1sin9π25+2sin9π25+3sin9π25+4sin9π25+5sin2π5+1sin2π5+2sin2π5+3sin2π5+4sin2π5+515 × 5 Matrix

(1)
>

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


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /