Re: on the background color of cgplot [message #84458 is a reply to message #84457] |
Mon, 27 May 2013 07:30   |
simona bellavista
Messages: 56 Registered: December 2009
|
Member |
|
|
>
> This sounds to me like the cluster machine is using 16-bit color, rather
>
> than 24-bit color. Could you log onto the cluster and run IDL without
>
> running your initializing script? From inside of IDL, I'd like to know
>
> the results of this command:
>
>
>
> IDL> Help, /Device
>
Available Graphics Devices: CGM HP LJ NULL PCL PRINTER PS REGIS TEK X Z
Current graphics device: X
Server: X11.0, The X.Org Foundation, Release 70101000
Display Depth, Size: 16 bits, (1024,768)
Visual Class: TrueColor (4)
Bits Per RGB: 8 (5/6/5)
Physical Color Map Entries (Emulated / Actual): 256 / 64
Colormap: Private, 65536 colors. Translation table: Enabled
Graphics pixels: Decomposed, Dither Method: Ordered
Write Mask: 65535 (decimal) ffff (hex)
Graphics Function: 3 (copy)
Current Font: <default>, Current TrueType Font: <default>
Default Backing Store: Req from Server.
In fact now that you ask, I notice that idl issues the following warning:
% Unsupported X Windows visual (class: TrueColor, depth: 24).
Substituting default (class: TrueColor, Depth: 16).
> I suspect you are unsuccessful in putting IDL into 24-bit mode on this
>
> cluster machine. Maybe because an IDL graphics window has already been
>
> opened by the time your initializing script is run. On UNIX, once a
>
> window is opened, you cannot change the depth of the visual class that
>
> is selected.
Actually the offending line in my script are:
!p.background=white
!p.color =black
(that I forgot in my previous post, sorry, my fault!!)
The peculiar think is that if I remove these lines, everything is OK and both plot and cgplot give white on black graphics.
If I insert the above lines I get this problem with cgplot. But if I write
cgplot, dindgen(10), background=white, color=black
I get black on white (but cyan axes).
>
>
> I'd also be curious what cgPlot would do if you set yourself up in
>
> decomposed color mode (Decomposed=1, which is what I recommend you do if
>
> you want to use Coyote Graphics routines).
>
I get cyan on red with cgplot and black on red with plot
|
|
|