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

Home » Public Forums » archive » Re: set_plot,'PS' and accurate colors?
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: set_plot,'PS' and accurate colors? [message #33469] Wed, 08 January 2003 13:02 Go to previous message
dave is currently offline  dave
Messages: 31
Registered: February 1994
Member
Mark Hadfield wrote:

> "dave" <knapp@rtt.colorado.edu.NOSPAM> wrote in message
> news:3E1C8321.655CD000@rtt.colorado.edu.NOSPAM...
>
>> It's looking like IDL can't plot output graphics (PS, metafile etc) with
> more than
>> 256 colors ever, is that true?
>
> It's true of the direct-graphics PS device. It's not true of the
> direct-graphics METAFILE or PRINTER devices, both of which accept a
> TRUE_COLOR keyword. (These statements are based on my reading of the manual.
> I don't actually have any experience of creating direct-graphics plots with
>> 256 colours.)

I tried the true_color keyword with "metafile" and cannot find a syntax that it
won't compain about. Tells me true_color cannot be used with the metafile
device.

>
> Actually, it's not quite true of the PS device, in that you can end up with
> more than 256 colours in a Postscript file by loading a colour table,
> plotting, loading a different colour table, plotting. Do this n times and
> you can have 256*n colours in the file.

Interesting thought, although I've coded this in a way that would make that
difficult now.

And, of course, you can write true-colour images to bitmap formats like

> TIFF, JPG and PNG.

If I rewrite all my code to not make line plots but rewrite 2-d arrays, yes.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: writing ascii files (with really long lines...)
Next Topic: Re: dlm returning ptr array and string array

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

Current Time: Sun Oct 12 10:45:31 PDT 2025

Total time taken to generate the page: 1.57196 seconds