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

Home » Public Forums » archive » Re: Color problem.
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: Color problem. [message #80100 is a reply to message #80099] Fri, 04 May 2012 10:15 Go to previous messageGo to previous message
d.poreh is currently offline  d.poreh
Messages: 406
Registered: October 2007
Senior Member
On Friday, May 4, 2012 8:59:19 AM UTC-7, Chris Torrence wrote:
> On Friday, May 4, 2012 7:48:48 AM UTC-6, dave poreh wrote:
>> Folk
>> hi,
>> I need to plot some point with different color like this:
>>
>> IDL> p = plot(vert[0,*],vert[1,*], 'or', /SYM_FILLED, SYM_SIZE=0.5, NAME='Red data')
>> IDL> p1 = plot(vert[0,*],vert[4,*], 'ob', /SYM_FILLED, /OVERPLOT,SYM_SIZE=0.5, NAME='Smoothed',/undoc)
>> IDL> p1 = plot(vert[0,*],vert[2,*], 'og', /SYM_FILLED, /OVERPLOT,SYM_SIZE=0.5, NAME='Smoothed',/undoc)
>> IDL> p1 = plot(vert[0,*],vert[3,*], 'oo', /SYM_FILLED, /OVERPLOT,SYM_SIZE=0.5, NAME='Smoothed',/undoc)
>>
>> how many color we have like this: 'or', 'ob', 'og' ..... i need some more color and i do not know the abbreviation for them!
>> any help would be appreciated,
>> Cheers,
>> Dave
>
> Actually, if you want a lot of colors, you should probably use the COLOR property instead...
> p = PLOT(x,y,'o',COLOR='Burlywood')
> You can get the list of colors by doing:
> print, tag_names(!color)
> If you look in the online help, under "Plot", then under the "Color" property, there is a link to "string or RGB vector". That page contains a list of the shorthand color names like "r","b","g" and it also contains a table of all of the colors.
> -Chris

Thanks Chris. it is really perfect.
Cheers,
Dave
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Color problem.
Next Topic: Re: Time series.

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

Current Time: Sat Oct 11 22:20:20 PDT 2025

Total time taken to generate the page: 1.52016 seconds