Re: color plot in window [message #62890] |
Mon, 13 October 2008 13:49 |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
On Oct 13, 3:18 pm, David Fanning <n...@dfanning.com> wrote:
> Vince Hradil writes:
>> You could also use DEVICE, PSEUDOCOLOR=8 before you run your code.
>
> Yeah, if you are the sort of person who still uses a rotary
> phone, you will be extremely comfortable in this environment. ;-)
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Actually, I think I might prefer to just ask the operator to "patch me
through" 8-)
|
|
|
Re: color plot in window [message #62892 is a reply to message #62890] |
Mon, 13 October 2008 13:18  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Vince Hradil writes:
> You could also use DEVICE, PSEUDOCOLOR=8 before you run your code.
Yeah, if you are the sort of person who still uses a rotary
phone, you will be extremely comfortable in this environment. ;-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: color plot in window [message #62893 is a reply to message #62892] |
Mon, 13 October 2008 13:15  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
On Oct 13, 2:57 pm, David Fanning <n...@dfanning.com> wrote:
> adisn...@hotmail.com writes:
>> 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)
>
> Oh, dear! Not this ugly monster again. :-)
>
> Here is some reading for you:
>
> http://www.dfanning.com/color_tips/working_with_color.pdf
>
> Make absolutely sure you read page 2 on Making SURE
> you are in a True-Color Visual Class. We cannot help
> you if you stay with a DirectColor Visual Class. Sorry. :-(
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
You could also use DEVICE, PSEUDOCOLOR=8 before you run your code.
You don't HAVE to be in True Color, but I agree DirectColor is (to me
anyways) incomprehensible.
|
|
|
Re: color plot in window [message #62894 is a reply to message #62893] |
Mon, 13 October 2008 13:05  |
adisn123
Messages: 44 Registered: July 2006
|
Member |
|
|
On Oct 13, 2:57 pm, David Fanning <n...@dfanning.com> wrote:
> adisn...@hotmail.com writes:
>> 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)
>
> Oh, dear! Not this ugly monster again. :-)
>
> Here is some reading for you:
>
> http://www.dfanning.com/color_tips/working_with_color.pdf
>
> Make absolutely sure you read page 2 on Making SURE
> you are in a True-Color Visual Class. We cannot help
> you if you stay with a DirectColor Visual Class. Sorry. :-(
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Ok.
I'll try.
Thanks.
|
|
|
Re: color plot in window [message #62895 is a reply to message #62894] |
Mon, 13 October 2008 12:57  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
adisn123@hotmail.com writes:
> 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)
Oh, dear! Not this ugly monster again. :-)
Here is some reading for you:
http://www.dfanning.com/color_tips/working_with_color.pdf
Make absolutely sure you read page 2 on Making SURE
you are in a True-Color Visual Class. We cannot help
you if you stay with a DirectColor Visual Class. Sorry. :-(
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: color plot in window [message #62897 is a reply to message #62895] |
Mon, 13 October 2008 12:47  |
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.
|
|
|
Re: color plot in window [message #62898 is a reply to message #62897] |
Mon, 13 October 2008 12:34  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
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
|
|
|