This preview shows page 1. Sign up to view the full content.
Unformatted text preview: increments of 1. i b=2.0 ;Defines the y-intercept m=-3.5 ;Defines the slope m y = m*x + b ;Defines the line -- Y will be an array since X is an array. y plot,x,y,thick=8 ;Plot a thick line p xyouts,0.5,0.70,'This is a line',charsize=2.0,/normal ;prints out the string (This is a line) using large characters and normal coordinates: ; 0.3 is the x position and 0.8 is the y position. With the /normal keyword, this tells ; IDL to locate the string at the point (0.3,0.8) where the corners of the plot are defined ; by [0,0] in the lower left and [1,1] in the upper right. ; device,/close ;closes the ps device -- must do this to see the plot correctly ; or you must exit IDL entirely. set_plot,'win' ;Sets the plotting device back to the screen for a windows machine. ; Different commands are used for other operating systems. end...
View Full Document
This note was uploaded on 01/19/2011 for the course ATOC 5235 taught by Professor Randell during the Fall '10 term at Colorado.
- Fall '10