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

Home » Public Forums » archive » Postscript output
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: Postscript Output [message #18735 is a reply to message #7108] Mon, 31 January 2000 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Ingo (ingo.meisel@stud.uni-karlsruhe.de) writes:

> I'm trying to export the contents of an IDL graphics window to a
> postscript file. This is the IDL code I've been using so far in a
> subroutine:
>
> set_plot,'PS'
>
> device, /color, file='file.ps'
>
> tv,image ;the variable image contains the pixel raster to store
>
> device, /close
>
> A postscript file is generated, however, the page is empty.
> What is wrong? Who can help me?

The page is empty!? I would have expected lousy output,
given the way you have configured the PostScript device,
but I wouldn't have expected the page to be empty.
I'm going to guess your image data isn't scaled into
256 values. Try something like this:

thisDevice = !D.Name
Set_Plot, 'PS'
Device, Color=1, Bits_per_Pixel=8, File='image.ps'
TV, BytScl(image)
Device, /Close_File
Set_Plot, thisDevice

You might also want to have a look at the Producing Perfect
PostScript Output section of my IDL Programming Tips
page for a number of other PostScript tips.

http://www.dfanning.com/documents/tips.html#PostScript

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Postscript output device
Next Topic: re: Should IDL throw a warning in this case?

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

Current Time: Sat Oct 11 12:29:15 PDT 2025

Total time taken to generate the page: 0.24486 seconds