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

Home » Public Forums » archive » Re: grey scale
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: grey scale [message #12510 is a reply to message #12492] Thu, 13 August 1998 00:00 Go to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Harry Reisig wrote:
>
> Howdy -
> Does anyone know if there is a grey-scale color table on IDL 5.0.2 (for
> PowerMac)? I need to publish some tvscl images (currently being viewed with
> color table 4) in grey-scale.
> I imagine that there is one posted somewhere, but I don't know where.
> Thanks
> Harry

should be colortable 0 (at least this is the number for Unix).
If loadct,0 does not work, try the following

cvec = bytscl(indgen(!D.N_COLORS),top=255) ; create grey scale
tvlct,cvec,cvec,cvec ; store the color table

If you apply REVERSE() to bytscl, you will get colors from white to
black.

Hope this helps,
Martin.

--
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Earth&Planetary Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
------------------------------------------------------------ -------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: widgets and objects
Next Topic: IDL5.1: Fitting image and map w general projection

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

Current Time: Wed Oct 08 17:23:35 PDT 2025

Total time taken to generate the page: 0.00570 seconds