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

Home » Public Forums » archive » Re: PLOT and colors
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: PLOT and colors [message #51469 is a reply to message #51468] Fri, 24 November 2006 10:00 Go to previous messageGo to previous message
Jean H. is currently offline  Jean H.
Messages: 472
Registered: July 2006
Senior Member
Ingo von Borstel wrote:
> Hello there,
>
> when using the PLOT command, it comes with a COLOR=xyz keyword. That
> works nicely in the way that I can specify in my case the shade of red
> that is plotted (xyz = 0...255), but I cannot make it plot in another
> color, e.g. yellow, blue or so. Is there a way to produce a color plot
> with IDL that allows me to plot using all colors available to my display
> and/or printer?
>
> Best regards,
> Ingo

you can also use a function from RSI's tutorial:
function rgb2idx, rgb
return, rgb[0]+(rgb[1]*2L^8)+(rgb[2]*2L^16)
end

plot, [...], color = rgb2idx[0,0,255] for a nice blue..

Jean
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: getting an IDLgrPlot drawn
Next Topic: IDL 6.3 Installation error code 1633

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

Current Time: Sat Oct 11 15:12:22 PDT 2025

Total time taken to generate the page: 1.68210 seconds