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

Home » Public Forums » archive » 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
cgColorBar greyscale [message #80292] Thu, 24 May 2012 02:46
Kai Muehlbauer is currently offline  Kai Muehlbauer
Messages: 13
Registered: February 2011
Junior Member
Hello Folks,

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):

----------------
set_plot,'Z'
Device, Set_Resolution=[800,500], SET_PIXEL_DEPTH=24, DECOMPOPSED=1
Erase

cgLoadCt, 13

cgScatter2d, aziplot[0:79,*], aziplotv[0:79,*], axiscolor='black', $
Background='white', PSym=3, Fit=1, color=bytscl(t1), /GRID, $
XRange=[xlo,xhi], YRANGE=[ylo,yhi], $ Position=[0.1, 0.1, 0.75, 0.90]

cgColorBar, Range=[0, 80*25], /VERTICAL, /RIGHT

write_png, destpath + fname, tvrd(/true)
---------------

Problem is: The scatter plot has colors but the colorbar is only greyscale.

I flipped through the Traditional IDL Graphics and also searched over
the internet. I'am now aware that there may be a problem with color
decomposition. I tried to play around with the decomposition state but
with no avail. So I came to the conclusion that before the sky falls on
my head I address the experts in this group.

So here is my question: What do I have to do to get a colored colorbar?
What may be the sources auf the greyscale colorbar? Whats wrong?

IDL 7.1 fresh Install, Coyote Library also fresh, Linux System, no X!

Cheers,
Kai
[Message index]
 
Read Message
Previous Topic: VISualize 2012 - IDL & ENVI User Group Spring Meeting
Next Topic: Re: Shut down X connection?

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

Current Time: Fri Oct 10 19:51:52 PDT 2025

Total time taken to generate the page: 0.64409 seconds