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

Home » Public Forums » archive » colors and images
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
colors and images [message #9999] Tue, 30 September 1997 00:00
Rafael Gallego is currently offline  Rafael Gallego
Messages: 2
Registered: December 1996
Junior Member
I use a program which generates three matrices for each time step. To
plot the data, I combine them into a single image by using the
COLOR_QUAN function

image=color_quan([[[mat1]],[[mat2]],[[mat3]]],3,red,green,bl ue,cube=6)
tvlct,red,green,blue
tv,image

and all it is OK. The problem arises when I want to change the colors
associated with the image. Imagine that I want to change the colors
(red,green,blue) to (white,grey,black) in order to get a suitable image
to print in a non color postscript printer. What have I to do? I have
tried by loading the color palette black-white (loadct,0) but I don't
get enough contrast. In other words, is possible to change the colors
RGB coming from COLOR_QUAN to another set of colors?

Thanks in advance.

RAFA.

--
============================================================ ==============
= ==== == == ======== Rafael Gallego
=
= ==== === === === ======= Universitat de les Illes Balears
=
= ==== === === ==== ====== Departament de Fisica
=
= ==== === === === ======= Crta. de Valldemosa. km 7.5
=
= ==== === === ======== 07071 Palma de Mallorca (Spain)
=
= ==== === === === ======= E-mail: rafa@hp1.uib.es
=
= ==== === === ==== ====== maeshtro@hotmail.com
=
= == === === === ======= Tfno.: 34-71-172536
=
== === == ======== Fax: 34-71-173426
=
============================================================ ==============
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: call_external
Next Topic: idl and pv-wave

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

Current Time: Wed Oct 08 17:49:00 PDT 2025

Total time taken to generate the page: 0.00723 seconds