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

Home » Public Forums » archive » Re: cgColorBar greyscale
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: cgColorBar greyscale [message #80289 is a reply to message #80287] Thu, 24 May 2012 05:43 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kai Muehlbauer writes:

> some part of the sky is falling on me while trying to do a scatterplot
> with an associated colorbar on a z-buffer device.
>
> Here is what I do (shorted):
>
> Problem is: The scatter plot has colors but the colorbar is only greyscale.

OK, the problem is complicated. :-)

I am not going to go into all of it, but you can learn
more about the problem by reading this article:

http://www.idlcoyote.com/cg_tips/configz.php

And, by reading the documentation header in SetDecomposedState.

Basically, the problem is this. The Z-Graphics buffer can
be put into 24-bit graphics mode, but it can't be taken
OUT of 24-bit graphics mode programmatically, without
destroying the functionality you are trying to make use of.
And, because a 20+ year effort to convince IDL users to
use something *other* than indexed color has been an
abject failure and caused me to retire prematurely, about
a year and a half ago I just threw up my hands and said
the hell with it, I wasn't going to worry about the Z-graphics
buffer anymore.

And, then you come along as this small ray of light!

So, bottom line, I had given up hope of anyone ever using
the Z-graphics buffer the way you are using it, and I had
written my programs, specifically, SetDecomposedState, with
this dispiriting hopelessness in mind. That was a mistake,
I see now. :-)

So, to solve your problem, get a new version of SetDecomposedState,
and you should be good to go:

http://www.idlcoyote.com/programs/setdecomposedstate.pro

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Previous Topic: Feature, or bug?
Next Topic: Re: Subscription 'daily digest' problems?

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

Current Time: Sat Oct 11 14:37:25 PDT 2025

Total time taken to generate the page: 0.79867 seconds