set_plot,'PS' and accurate colors? [message #33513] |
Tue, 07 January 2003 10:53  |
dave
Messages: 31 Registered: February 1994
|
Member |
|
|
If I plot PS files in IDL I can't seem to get the same color table as
when I plot to the screen. I've tried the
,/interpolate
as well as
device,file='24bit.ps', /color,bits=16 (8,16,24,32)
device,/color
Nothing seems to change the compression of the colors in the PS file.
Any ideas?
David
knapp(at)rtt.colorado.edu
|
|
|
|
|
|
|
|
Re: set_plot,'PS' and accurate colors? [message #33662 is a reply to message #33513] |
Fri, 10 January 2003 12:18  |
R.G. Stockwell
Messages: 363 Registered: July 1999
|
Senior Member |
|
|
dave wrote:
>
> David Fanning wrote:
>
>
>> dave (knapp@rtt.colorado.edu.NOSPAM) writes:
>>
>>
>>> I wonder if TVRD isn't supported on win2k IDL:
>>>
>>> % Attempt to call undefined procedure/function: 'TVRD'.
>>> % Execution halted at: BT 333 C:\Documents and
>>> Settings\Administrator\Desktop\CF_BTs\bt.pro
>>>
>> I think you must have called it as a procedure, instead of
>> as a function:
>>
>> snapshot = TVRD(True=1)
>>
>
> Tried both ways actually, I'm dumb but I'm not stupid...
>
>
>
TVRD() does work on win2k (idl5.6)
That message results when you call it as a procedure, and it cannot
find the procedure definition.
If you called a nonexistent function, IDL will think it is an array,
and give you a syntax error (unless you changed the compiler settings).
(or it gives you a "variable is undefined" if you call it with a parameter).
If you start up IDL, you should be able to type
IDL> help,tvrd()
at the command line and see it work.
Cheers,
bob stockwell
|
|
|
Re: set_plot,'PS' and accurate colors? [message #33666 is a reply to message #33513] |
Fri, 10 January 2003 11:27  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
dave (knapp@rtt.colorado.edu.NOSPAM) writes:
> Tried both ways actually, I'm dumb but I'm not stupid...
Well, I'm pretty sure, then, that you didn't type what
you *thought* you typed. :-)
Cheers,
David
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|
Re: set_plot,'PS' and accurate colors? [message #33667 is a reply to message #33557] |
Fri, 10 January 2003 11:18  |
dave
Messages: 31 Registered: February 1994
|
Member |
|
|
David Fanning wrote:
> dave (knapp@rtt.colorado.edu.NOSPAM) writes:
>
>> I wonder if TVRD isn't supported on win2k IDL:
>>
>> % Attempt to call undefined procedure/function: 'TVRD'.
>> % Execution halted at: BT 333 C:\Documents and
>> Settings\Administrator\Desktop\CF_BTs\bt.pro
>
> I think you must have called it as a procedure, instead of
> as a function:
>
> snapshot = TVRD(True=1)
Tried both ways actually, I'm dumb but I'm not stupid...
|
|
|