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

Home » Public Forums » archive » cgHistoplot colors
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
cgHistoplot colors [message #80210] Tue, 22 May 2012 10:13
willettk is currently offline  willettk
Messages: 20
Registered: October 2006
Junior Member
Hello,

I just re-downloaded the entire Coyote library (May 22, 2012 version), and am having a 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?

-thanks,
kw
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: subarray
Next Topic: Re: New Twist on %BadMatch (invalid parameter attributes) error in IDL module for ENVI

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

Current Time: Wed Oct 08 20:04:55 PDT 2025

Total time taken to generate the page: 0.00487 seconds