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

Home » Public Forums » archive » 24-bit color contour
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
24-bit color contour [message #27882] Fri, 09 November 2001 16:44 Go to next message
tom is currently offline  tom
Messages: 28
Registered: April 1995
Junior Member
Hi, is it possible for me to draw a 24-bits color filled contour plot on a
24-bits screen or PS file? It is usually a 8-bits contour or grey contour.
Thanks. Tom
Re: 24-bit color contour [message #28114 is a reply to message #27882] Mon, 19 November 2001 07:57 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Wolf Schweitzer (wuff@swisswuff.ch) writes:

> I use the hexadecimal format for colors in the contour functions simply
> because it is easier for my brain to put a decent color together in
> 'r-g-b' format under 24-bit colors.
>
> The colors in this call will be
>
> purple 'ff00ff'xl
> blue 'ff0000'xl
> green '00ff00'xl
> red '0000ff'xl

Yeah, but I don't think you do that in a PostScript
file, as Tom was asking about. :-)

Cheers,

David

--
David W. Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
Re: 24-bit color contour [message #28115 is a reply to message #27882] Mon, 19 November 2001 06:22 Go to previous message
Wolf Schweitzer is currently offline  Wolf Schweitzer
Messages: 21
Registered: October 2001
Junior Member
In article <9sht53$jkj$1@mail.cn99.com>, "tom" <tom2959@21cn.com>
wrote:

> Hi, is it possible for me to draw a 24-bits color filled contour plot on a
> 24-bits screen or PS file? It is usually a 8-bits contour or grey contour.
> Thanks. Tom



------

Tom,

I use the hexadecimal format for colors in the contour functions simply
because it is easier for my brain to put a decent color together in
'r-g-b' format under 24-bit colors.

The colors in this call will be

purple 'ff00ff'xl
blue 'ff0000'xl
green '00ff00'xl
red '0000ff'xl


Wolf Schweitzer



contour,image_array(*,*,image_info.counter), $
xrange = [0,cont_max],yrange = [0,cont_max],xstyle =5,ystyle=5,$
levels = [cont1_val,cont2_val,cont3_val,cont4_val],$
c_colors = ['ff00ff'xl,'ff0000'xl,'00ff00'xl,'0000ff'xl],$
pos = [0,0,611,611],noerase=cont_noerase

--


Wolf Schweitzer
MD, FMH Rechtsmedizin
Research Fellow / Registrar
Institute of Legal Medicine
Bern, Switzerland

mailto:wuff@swisswuff.ch
http://www.swisswuff.ch
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: pie-shaped polar plot in IDL?
Next Topic: Ongoing Object Graphics Quest

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

Current Time: Wed Oct 08 13:43:52 PDT 2025

Total time taken to generate the page: 0.00543 seconds