Re: cgHistoplot colors [message #80205] |
Tue, 22 May 2012 10:44 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Kwill writes:
> Absolutely right, David. It's nice that the IDL Astronomy
> User's Library endorses Coyote (and apparently includes it
> in its distributions), but it does make versioning like
> this annoying sometimes.
To Wayne's credit he tells people to delete the Coyote
Library distributed with the Astronomy Library and
download the most recent one from my web page. Not
his fault that no one listens to him. :-)
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.")
|
|
|
Re: cgHistoplot colors [message #80207 is a reply to message #80205] |
Tue, 22 May 2012 10:34  |
willettk
Messages: 20 Registered: October 2006
|
Junior Member |
|
|
On Tuesday, May 22, 2012 12:22:45 PM UTC-5, David Fanning wrote:
> David Fanning writes:
>
>> 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')
>
> Well, this would be something like:
>
> IDL> Print, File_Which('cgcolor.pro')
>
> Too much Python lately. :-)
>
> Try it with cgHistplot, too. One or the other is not
> what it should be.
>
> 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.")
Absolutely right, David. It's nice that the IDL Astronomy User's Library endorses Coyote (and apparently includes it in its distributions), but it does make versioning like this annoying sometimes.
Works fine now - thanks for your quick response.
- k
|
|
|
Re: cgHistoplot colors [message #80208 is a reply to message #80207] |
Tue, 22 May 2012 10:22  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
David Fanning writes:
> 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')
Well, this would be something like:
IDL> Print, File_Which('cgcolor.pro')
Too much Python lately. :-)
Try it with cgHistplot, too. One or the other is not
what it should be.
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.")
|
|
|
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.")
|
|
|