First, we'll plot a simple graph using a sine function. Use the FINDGEN function here to specify the dimensions of the array. The FINDGEN function returns a single-precision, floating-point array, with the specified dimension, where each element of the array is set to the value of its one-dimensional subscript. We also use a constant in creating this data (!PI). The character (!) is used to indicate constant pre-defined values.
1. First, create a value for the X axis:x=2*!PI/100*findgen(100)2. Now, use PLOT to visualize the array:plot,sin(x)

Now use OPLOT to plot the new information over the existing plot:
1. Plot at twice the frequency:The results are shown in the following figure.oplot,sin(2*x)2. Plot at three times the frequency:oplot,sin(3*x)

1. Plot the first set of data on temperatures which is stored in Temp1plot,plot_ascii.Time,plot_ascii.Temp1

2. Plot with titles:plot,plot_ascii.Time,plot_ascii.Temp1,title='Temperature Over Time', $
xtitle='Time in Seconds',ytitle='Temperature Celsius'

2. Create a LIVE plotThe result is shown in the following figure:live_plot,plot_ascii.Temp1,plot_ascii.Temp2, $ name={data:['Temp1','Temp2']}

| This information is available in alternative formats upon request by individuals with disabilities. Please send email to alt-format@msi.umn.edu or call 612-624-0528. | ||||||||||||
|
HOME
| QUESTIONS | FEEDBACK
|
||||||||||||
|
||||||||||||