Previous documentTable of Contents


Plot Options

There are options that control the way the graphical output of a fit is displayed. This document discussed those options The options are:

The Plot Options are accessed from the Graph Setup screen.


AxesLabel

By default, the axes of the plot are not labelled. The AxesLabel option allows you to label either or both of the axes. The relevant part of the Plot Options screen looks like this:

AxesLabel

Horizontal Axis (Independent Variable)
(default: None)


Vertical Axis (Independent Variable)
(default: None)

AxesLabel allows the user to specify labels for the axes of the data/fit results plot. If a label is specified for the horizontal axis, it will also be used to label the horizontal axis of the residual plot.

We choose to label both axes by changing the form to look like this:

AxesLabel

Horizontal Axis (Independent Variable)
(default: None)


Vertical Axis (Dependent Variable)
(default: None)

AxesLabel allows the user to specify labels for the axes of the data/fit results plot. If a label is specified for the horizontal axis, it will also be used to label the horizontal axis of the residual plot.

Now the axes are labelled:

Axes labels

AxesOrigin

By default, Mathematica tries to do the sensible thing in placing the origin of the axes. Sometimes you may wish to change the default behavior. For example, here is some data on neuron behavior in rats:

Default axis origin

If you wish to move the origin of the axes so that the axes are outside the range of the data, you may set the AxesOrigin option so that it looks like this:

AxesOrigin

Automatic (default)
Horizontal axis:
Vertical axis:

The AxesOrigin specifies where the axes of the plot should cross. When set to the default value of Automatic, then an internal algorithm is used. Otherwise the user may set the values of the independent and dependent variables

Now the plot looks like:

AxesOrigin -> {6.5, 17.5}

WarningYou should be careful about using the AxesOrigin option when you should use the PlotRange one discussed below. For example, here is a plot of some radioactive dating calibration data:

Perhaps you wish the axes to go through the point 0,0. If you use the AxesOrigin option to choose that point, the result is:

AxesOrigin -> {0,0}

Note that the horizontal axis has not extended itself to that origin. Instead, we keep the AxesOrigin option at its default value of Automatic, and set the horizontal PlotRange option to 0,30000. This results in a plot which is probably what is desired:

PlotRange -> {{0,30000}, Automatic}

ListPlotThreshold

When the data contain no explicit errors and there are many data points, the plot of the data is produced by the Mathematica built-in function ListPlot. The size of the "dots" produced by ListPlot can be fairly small, depending on the display device; sometimes these points are difficult to see. Thus, when there are only a few data points, the plot of the data is produced by an internal program from the Experimental Data Analyst package which uses a larger diamond shaped "dot." The ListPlotThreshold option sets how many data points are necessary for ListPlot to be used.

Here is a plot 14 data points relating to the growth of the retina in cats:

Data displayed with an internal program

We set the value of ListPlotThreshold to 13 by typing that number directly in the text field below:

ListPlotThreshold


(default: 100)

If the data do not have explicit errors, then the data points are represented either by small dots or by somewhat larger diamonds, depending on how many data points there are: if the number of data points is greater than the value of ListPlotThreshold then dots are used, and otherwise diamonds are used.

Now the data points are represented by smaller dots:

ListPlotThreshold -> 13

PlotLabel

This option allows the plot of the data to have a label. For example, if we type into the text field below:

PlotLabel


(default: None)

When text is entered into the text field to the left, that text will be the label on the plot.

then the resulting plot is:

A labelled plot

PlotRange

By default, the grapher chooses ranges for the vertical and horizontal axes that include all or most of the data with appropriate scaling. The PlotRange option allows you to override this default behavior.

The relevant part of the Plot Options screen looks like this:

PlotRange

Horizontal Axis (Independent Variable)
Automatic (default)
Min:  Max: 
Vertical Axis (Dependent Variable)
Automatic (default)
Min:  Max: 
PlotRange allows the user to specify the minimum and maximum values for the horizontal and vertical axes of the graph

Here is a graph of some thermocouple calibration data:

Data displayed with an internal program

If, for some reason, you wish to display the vertical axis as symmetric from -3 to +3, then the relevant part of the Options screen would look like this:

PlotRange

Horizontal Axis (Independent Variable)
Automatic (default)
Min:  Max: 
Vertical Axis (Dependent Variable)
Automatic (default)
Min:  Max: 
PlotRange allows the user to specify the minimum and maximum values for the horizontal and vertical axes of the plot.

Now the plot looks like this:

PlotRange option

Previous documentTable of Contents


This document is Copyright © 1999, 2000 David M. Harrison. The screens are Copyright © 1999, 2000 Solomon R.C. Douglas and David M. Harrison. This is version 1.1, data (m/d/y) 03/19/00.