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

Home » Public Forums » archive » Reverse colour table in postscript
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
Reverse colour table in postscript [message #24991] Wed, 09 May 2001 06:48
Jonathan Smoker is currently offline  Jonathan Smoker
Messages: 1
Registered: May 2001
Junior Member
Hello,

I would like to create a postscript file with using a reverse colour
table i.e. black for the
maximum values and white for the minimum values. So far, i've used the
following code,

set_plot,'device',/copy ; tried with and without the /copy
and with loadct
and reverse_ct
before this line.
; device, filename='myfile.ps' ; tried with and without this line.
loadct,0 ; loads the black-white
linear colour table
reverse_ct ; copied from Fanning
website
contour,image1,/fill,color=0 ; contours the image
device, /close

If I run the above using device='X', then i get the plot screen that
I wish
(i.e. peaks are black and zero is white). However, if I used device='ps'
then
i get the opposite i.e. the colour table does not appear to have been
reversed.

Of course, I can get a reverse colour table by multiplying the image by
-1.0
i suppose!.

The reverse_ct.pro progr looks like this from the Fanning website.
PRO Reverse_CT
TVLCT, r, g, b, /Get
TVLCT, Reverse(r), Reverse(g), Reverse(b)
END

If anyone has a clue that would be good.
thanks,
Jonathan.
---------------------------------------------------
Work phone number; +44(0)2890-273708 Fax;
+44(0)2890-38918
email; j.smoker@qub.ac.uk (best) or jonathan_smoker@hotmail.com
------------------------------------------------------------ -------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: PDS Format
Next Topic: Chopping up a string

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

Current Time: Wed Oct 08 19:16:38 PDT 2025

Total time taken to generate the page: 0.00416 seconds