Re: cgHistoplot colors [message #80209 is a reply to message #80208] |
Tue, 22 May 2012 10:19  |
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.")
|
|
|