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

Home » Public Forums » archive » set_plot,'PS' and accurate colors?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
set_plot,'PS' and accurate colors? [message #33513] Tue, 07 January 2003 10:53 Go to next message
dave is currently offline  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 #33525 is a reply to message #33513] Thu, 09 January 2003 20:31 Go to previous messageGo to next message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
I know the PRINTER device will do 24-bit color, but it has its own
hassles with setting up devices, etc.

Can't we all just send a letter to RSI asking that they PLEASE include
real 24-bit support in the postscript device? This problem crops up
year after year.

Ken Bowman
Re: set_plot,'PS' and accurate colors? [message #33556 is a reply to message #33513] Wed, 08 January 2003 13:49 Go to previous messageGo to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
"dave" <knapp@rtt.colorado.edu.NOSPAM> wrote in message
news:3E1C9900.D447BDCB@rtt.colorado.edu.NOSPAM...
> 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

TVRD most definitely *is* supported on Win2K.

It's clear there's *something* odd happening. I wonder what. Are you trying
to call TVRD as a procedure?

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: set_plot,'PS' and accurate colors? [message #33557 is a reply to message #33513] Wed, 08 January 2003 13:55 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
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)

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 #33559 is a reply to message #33513] Wed, 08 January 2003 13:32 Go to previous messageGo to next message
dave is currently offline  dave
Messages: 31
Registered: February 1994
Member
Mark Hadfield wrote:

Assuming you have a 16-bit or 24-bit display, you can send your line

> plotting commands to a window (or an off-screen pixmap created by "window,
> /PIXMAP") then extract the image with "tvrd(/TRUE)".

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

>
> There are lots of complications & subtleties associated with different
> colour models in IDL direct graphics. I suggest you read everything you can
> find on the subject at David's WWW site:
>
> http://www.dfanning.com/
> nal Institute for Water and Atmospheric Research (NIWA)

Thanks for your help, I've used that website numerous times, it's great - I
think I'm going to have to punt here due to time constraints.
Re: set_plot,'PS' and accurate colors? [message #33560 is a reply to message #33513] Wed, 08 January 2003 13:30 Go to previous messageGo to next message
dave is currently offline  dave
Messages: 31
Registered: February 1994
Member
> Assuming you have a 16-bit or 24-bit display, you can send your line
> plotting commands to a window (or an off-screen pixmap created by "window,
> /PIXMAP") then extract the image with "tvrd(/TRUE)".

I wonder if tvrd isn't supported in win2k IDL -


>
>
> There are lots of complications & subtleties associated with different
> colour models in IDL direct graphics. I suggest you read everything you can
> find on the subject at David's WWW site:
>
> http://www.dfanning.com/
>
> --
> Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
> m.hadfield@niwa.co.nz
> National Institute for Water and Atmospheric Research (NIWA)
Re: set_plot,'PS' and accurate colors? [message #33662 is a reply to message #33513] Fri, 10 January 2003 12:18 Go to previous message
R.G. Stockwell is currently offline  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 Go to previous message
David Fanning is currently offline  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 Go to previous message
dave is currently offline  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...
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Figuring out which functions and procedures get called
Next Topic: IDL 5.6 with Apple's X11 beta for Mac OS X

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

Current Time: Wed Oct 08 13:44:48 PDT 2025

Total time taken to generate the page: 0.00535 seconds