Skip to main content

3.2) Plotting (cont'd)


Note that the defult colour for plotting in IDL is white on black. You can change this using the command "!p.color" to change the plotting colour and "!p.background" to change the background colour for the current IDL session. Insert the following code at the top of your simple_plot.pro file.

!p.color = 0
!p.background = 255

Now save the program and run it again, your plot should now look like the plot below.


Note that anything starting with an exclamation mark "!" is an IDL system variable.