How to Plot with Colors in IDL (Simply) when NOT at PPPL

If you are at PPPL and have invoked the recommended IDL Setup at PPPL (http://NSTX.pppl.gov/nstx/Software/IDL/setupidl.html), you may want to use the mk_color function.

Otherwise, try the following in IDL:


	Device, Pseudo_Color=8, Decomposed=0
	LoadCT, 39	; Rainbow+white
	c = { black : 	0,  $
	      blue : 	.25*!d.n_colors, $
	      ltblue : 	.40*!d.n_colors, $
	      green : 	.65*!d.n_colors, $
	      yellow : 	.75*!d.n_colors, $
	      orange : 	.80*!d.n_colors, $
	      red : 	.90*!d.n_colors, $
	      white : 	!d.n_colors-1   }

Then try something like
	IDL> plot,indgen(100), color=c.yellow
	IDL> oplot, indgen(100)/2, color=c.blue

Please mail comments on this page to IDLadmin.

updated: 19-Jun-2001
by: Bill Davis