[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying a plot and a true color image on the same window

Alok Nagdev (nagdev@csee.usf.edu) writes:
> I'm trying to display a plot using color bar and a few true color image
> on the same window but as soon as the color table is loaded, the true
> color image is displayed according to color bar being used. Is there any
> other way this could be done?? Images I'm displaying are jpeg images.

Well, now that I read this a little more closely,
I think the problem is that you are trying to
display these images on an 8-bit display. This
makes the problem more difficult, but not

What you need to do is make all your images and your
color bar share the same color space. I think the
sensible way to do this is to use COLOR_QUAN with
the CUBE keyword set to 6 on all your image. This 
will quantitize your colors to 216 values that 
can faithfully (more or less) represent both the 
images and (I presume) color bar.


David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155