The PLOT procedure draws graphs of vector arguments. If one parameter is used, the vector parameter is plotted on the ordinate versus the point number on the abscissa. To plot one vector as a function of another, use two parameters. PLOT can also be used to create polar plots by setting the POLAR keyword.

A vector argument. If X is not specified, *
Y*
is plotted as a function of point number (starting at zero). If both arguments are provided, *
Y*
is plotted as a function of *
X*
.

This argument is converted to single-precision floating-point before plotting. Plots created with PLOT are limited to the range and precision of single-precision floating-point values.

Set this keyword to force the scaling of the X and Y axes to be equal.

**NOTE: **
The X and Y axes will be scaled isotropically and then fit within the rectangle defined by the POSITION keyword; one of the axes may be shortened. See
POSITION
for more information.

The maximum value to be plotted. If this keyword is present, data values greater than the value of MAX_VALUE are treated as missing and are not plotted. Note that the IEEE floating-point value NaN is also treated as missing data. (See Special Floating-Point Values for more information on IEEE floating-point values.)

The minimum value to be plotted. If this keyword is present, data values less than the value of MIN_VALUE are treated as missing and are not plotted. Note that the IEEE floating-point value NaN is also treated as missing data. (See Special Floating-Point Values for more information on IEEE floating-point values.)

The presence of this keyword indicates the number of data points to average when plotting. If NSUM is larger than 1, every group of NSUM points is averaged to produce one plotted point. If there are *
m*
data points, then *
m*
/NSUM points are displayed. On logarithmic axes a geometric average is performed.

It is convenient to use NSUM when there is an extremely large number of data points to plot because it plots fewer points, the graph is less cluttered, and it is quicker.

Set this keyword to produce polar plots. The *
X*
and *
Y*
vector parameters, both of which must be present, are first converted from polar to Cartesian coordinates. The first parameter is the radius, and the second is the angle (expressed in radians). For example, to make a polar plot, you would use a command such as:

Controls the thickness of the lines connecting the points. A thickness of 1.0 is normal, 2 is double wide, etc.

Set this keyword to specify a logarithmic X axis, producing a log-linear plot. Set both XLOG and YLOG to produce a log-log plot. Note that logarithmic axes that have ranges of less than a decade are not labeled.

Set this keyword to inhibit setting the minimum Y axis value to zero when the *
Y*
data are all positive and nonzero, and no explicit minimum Y value is specified (using YRANGE, or !Y.RANGE). By default, the Y axis spans the range of 0 to the maximum value of *
Y*
, in the case of positive Y data. Set bit 4 in !Y.STYLE to make this option the default.

See , Graphics Keywords , for the description of graphics and plotting keywords not listed above. BACKGROUND

The PLOT procedure has many keywords that allow you to create a vast variety of plots. Here are a few simple examples using the PLOT command.

D = FINDGEN(100) *;
Create a simple dataset.*

PLOT, D, TITLE = 'Simple Plot' *;
Create a simple plot with the title "Simple Plot"*

PLOT, SIN(D/3), COS(D/6) *;
Plot one argument versus another*

PLOT, D, D, /POLAR, TITLE = 'Polar Plot' *;
Create a polar plot*

PLOT, SIN(D/10), PSYM=4, XTITLE='X Axis', YTITLE='Y Axis'

*;
Use plotting symbols instead of connecting lines by including the PSYM keyword. Label the X and Y axes with XTITLE and YTITLE.*