Re: colorbar help [message #9992 is a reply to message #9986] |
Tue, 30 September 1997 00:00  |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
Rick McDaniel wrote:
>
> Does IDL have a generic procedure to output a colorbar on a contour plot?
>
> I found a procedure on the web, and it works great when device is set to
> the display but it doesn't look the same when device is set to PS. Here's
> my procedure to read in a data file, call a procedure to calculate the
> wavelet transform, and plot the results:
>
(cut)
I was facing the same problem, and I ended up editing my colortable so
that I get 10 contour levels with easily distinguishable and more or
less
"intuitive" colors. I put a routine named mapct.pro on my webpage and
there
is also a somewhat rudimentary version of a routine named
getcontourlevels.pro
which serves to determine the cuts between the 10 levels. Sorry, but at
this stage I am still developing the rest of the routines needed to do
the actual contourplots with these routines.
Anyhow, I got another question concerning a related issue:
I discovered that (at least with our color printer which is a QMS
magicolor CX) a decrease in the RGB levels does not necessarily lead to
darker colors but may actually yield brighter ones. Furthermore, it is
quite hard to find RGB values that are not dithered on this printer
(although I am using bits_per_pixel=8). So, I wonder whether this is a
general problem of postscript or IDL or a specific problem of our
printer.
Thanks for any help,
Martin.
------------------------------------------------------------ ------------
Dr. Martin Schultz
Department for Earth&Planetary Sciences, Harvard University
186 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA
phone: (617)-496-8318
fax : (617)-495-9837
Please indicate name and room (186 Pierce) when sending a fax
mailto:mgs@io.harvard.edu
IDL-homepage: http://www-as.harvard.edu/people/staff/mgs/idl/
------------------------------------------------------------ ------------
|
|
|