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

Home » Public Forums » archive » IDLgrImage image plot problem
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: IDLgrImage image plot problem [message #50375 is a reply to message #50303] Wed, 27 September 2006 09:06 Go to previous messageGo to previous message
yy is currently offline  yy
Messages: 14
Registered: September 2006
Junior Member
David Fanning wrote:
> yy writes:
>
>> I just found that if I set the color table to be gray
>> (i.e., oPalette -> LoadCT, 0), things will show up with
>> the correct setting of VIEWPLANE_RECT. However,
>> none of the other color tables works. I'm wondering if
>> this is a problem with my IDL. But if that's the case,
>> why does the direct graphic method, i.e., LOADCT,
>> work well for all the color tables for the same data set?
>> And why does the color table work for an array with
>> dimensions [3, n, m]? I really have no clue about this.
>> It seems that nobody had complained about displaying
>> the IDL provided example, CenteringAnImage.pro.
>
> Well, here is a completely wild guess. Are you by any
> chance using a DIRECTCOLOR visual? If you are not using
> a TRUECCOLOR visual, all bets are off with respect to
> color behavior. :-)
>
> Try this:
>
> IDL> Help, /Device
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.dfanning.com/

It seems to be a TrueColor visual. :(
The strange thing is the direct graphic method works.

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 60802000
Display Depth, Size: 24 bits, (1024,768)
Visual Class: TrueColor (4)
Bits Per RGB: 8 (8/8/8)
Physical Color Map Entries (Emulated / Actual): 256 / 256
Colormap: Shared, 16777216 colors. Translation table: Enabled
Graphics pixels: Combined, Dither Method: Ordered
Write Mask: 16777215 (decimal) ffffff (hex)
Graphics Function: 3 (copy)
Current Font: <default>, Current TrueType Font: <default>
Default Backing Store: Pixmap.

Jingyi
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Dereferencing a large array in a structure
Next Topic: Like SPLINE but does not go through all points

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

Current Time: Fri Oct 10 10:37:53 PDT 2025

Total time taken to generate the page: 2.55843 seconds