replot
This is a general purpose plotting routine which behaves much
like the native IDL PLOT routine
except for two important differences.
replot creates a PostScript file
while simultaneously displaying the plot on the screen. Also,
replot allows you to enter new
window parameters for the plot with mouse input (see
General Note on
Plotting).
This routine also allows overplotting of two data sets.
Syntax:
replot,X,Y
The X argument is an array of float or integer. If
Y is not present then
replot will plot the values in
X against array index. Otherwise the result
is a plot of Y vs. X.
Example:
replot,X,Y,yttl='Power',xttl='frequency',ttl='Power Plot',psfile='output.ps'
Options:
xmm=[lower,upper],
initial x-axis scale. default is maximum range. lower
and upper are integer or float values. The square brackets
are necessary. Alternatively, one can use the assignment of an array
of two dimensions.
ymm=[lower,upper],
initial y-axis scale. default is maximum range. lower
and upper are integer or float values.
ttl='Plot title',
title for the plot
xttl='x-axis title',
title for the horizontal axis
yttl='y-axis title',
title for the vertical axis
psym=n,
IDL symbol code to use for plotting the points. The variable
n is an integer value from 0 to 10.
comments=S,
additional comments for the plot. The variable S
is a string or an array of string.
PSfile='output_filename.ps',
The name of the PostScript output file.
/once,
plot only once. do not run the re-windowing routine.
x2=x,
An array containing the x-data to be over plot.
y2=x,
An array containing the y-data to be over plot.
ostyle=n,
IDL linestyle code to use for the overplot data. The variable
n is an integer value from 0 to 5.