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

Home » Public Forums » archive » Re: cgHistoplot colors
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: cgHistoplot colors [message #80209 is a reply to message #80208] Tue, 22 May 2012 10:19 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Kwill writes:

> significant problem with the background color in cgHistoplot. Starting a fresh new IDL session, I type in:
>
> IDL Version 8.1, Mac OS X (darwin x86_64 m64). (c) 2011, ITT Visual Information Solutions
>
> IDL> cghistoplot,indgen(10)
> % Compiled module: CGHISTOPLOT.
> % Compiled module: CGDEFCHARSIZE.
> % Compiled module: STR_SIZE.
> % Compiled module: CONVERT_TO_TYPE.
> % Compiled module: CGDEFAULTCOLOR.
> % Compiled module: GETDECOMPOSEDSTATE.
> % Compiled module: DECOMPOSEDCOLOR.
> % Compiled module: SETDECOMPOSEDSTATE.
> % Compiled module: CGDISPLAY.
> % Compiled module: CGQUERY.
> % Compiled module: CGERASE.
> % Compiled module: CGCOLOR.
> % Compiled module: CGSNAPSHOT.
> % CGCOLOR: Can't find color BACKGROUND. Substituting 'OPPOSITE'.
> IDL>
>
> And I get a black background with no visible text or axes and red as the datacolor. Repeating the command with the same window open, the background switches to white, but no text or axes are visible.
>
> I'm guessing that there's something odd in the way that cgColor is picking its default, but I can't locate the problem. It does work if I define BACKCOLORNAME while starting the plot. This seems to be cgHistoplot-specific -- cgPlot works perfectly. Any suggestions?

I would have a look at your IDL path. You are not
running the programs you *think* you are running. :-)

I suspect you are finding an old cgColor in your path.
You can find out by typing something like this:

IDL> File_Which('cgcolor.pro')

That should be pointing to the directory you downloaded today.
Chances are, it does not.

Let us know.

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thue. ("Perhaps thos speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: New Twist on %BadMatch (invalid parameter attributes) error in IDL module for ENVI
Next Topic: write .cat file

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

Current Time: Thu Oct 09 14:02:30 PDT 2025

Total time taken to generate the page: 1.76059 seconds