colors and images [message #9999] |
Tue, 30 September 1997 00:00 |
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
=
============================================================ ==============
|
|
|