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 #80102 is a reply to message #80100] Fri, 04 May 2012 08:59 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
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
[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 19:21:02 PDT 2025

Total time taken to generate the page: 2.96246 seconds