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

Home » Public Forums » archive » Re: color plot in window
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: color plot in window [message #62897 is a reply to message #62895] Mon, 13 October 2008 12:47 Go to previous messageGo to previous message
adisn123 is currently offline  adisn123
Messages: 44
Registered: July 2006
Member
On Oct 13, 2:34 pm, Vince Hradil <vincehra...@gmail.com> wrote:
> On Oct 13, 2:23 pm, adisn...@hotmail.com wrote:
>
>
>
>> Hi,
>
>> This should work but it does not, and I'm not sure what I'm doing
>> wrong.
>> 'd appreciate anyone who can answer to this!
>
>> I'm trying to plot in colors in 8 bits.
>> A simple version of my code follows as
>
>> pro test
>> device, decomposed =0
>
>> x = indgen(100)
>> y = sin(x)
>
>> tvlct, 255,0,0, 100
>> plot, x, y, background=255, color=100
>
>> end
>
>> It plots in a gray color, not in red.
>
>> Anyone any idea?
>> Thanks
>
> What do you get from IDL> help, /device

The following is what I copied from the idl window.

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 10500000
Display Depth, Size: 24 bits, (1680,1050)
Visual Class: DirectColor (5)
Bits Per RGB: 8 (8/8/8)
Physical Color Map Entries (Used / Total): 256 / 256
Colormap: Private, 16777216 colors. Translation table: Bypassed
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: Req from Server.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: The problem of the PostScript font sysytem
Next Topic: Re: The problem of the PostScript font sysytem

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

Current Time: Wed Oct 08 13:33:25 PDT 2025

Total time taken to generate the page: 0.00408 seconds