comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » colors and plot direct graphics function
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
colors and plot direct graphics function [message #82452] Fri, 14 December 2012 15:31
Thibault Garel is currently offline  Thibault Garel
Messages: 55
Registered: October 2009
Member
Hi,

I switched from idl 7 to 8.2 recently, and start using direct graphics
for plotting purposes.

To plot in colors in idl 7, I used to do:
loadct,39
plot,x,y,color=250
for a red line.

With direct graphics I can do:

p=plot(x,y,AXIS_STYLE=0,$
XRANGE=[0,30],YRANGE=[0,30],color='red')

But is there a way to load a color table and use a single number value
(e.g. 250 for red) for colors instead of a string with the plot
function?

I find it convenient to use that when you want to overplot many curves
of different colors in a for loop for instance.

I couldn't find this tip in the IDL help...

Thanks!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Very tricky NetCDF "bug"
Next Topic: HASH with case insensitive keys versus a new DICT class

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:17:01 PDT 2025

Total time taken to generate the page: 0.00535 seconds