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

Home » Public Forums » archive » Re: best way to ps an image
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
Re: best way to ps an image [message #18587] Wed, 19 January 2000 00:00
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
rgs wrote:

> This is kinda a dumb question that I'm pretty
> sure I know what to do, but I'm interested to
> see if anyone has already done this, and has a
> good solution.
>
> I am outputing data into a plot window (in direct graphics)
> that requires a large number of solid polyfill rectangles
> (on the order of a few million).
> When I write this to postcript, it makes a huge file
> (50 meg up to ~few hundred), and of course is slow
> to print and view etc.
>
> (drawing to screen isn't a problem. Sure it takes a few seconds,
> but no big deal.)
>
> Obviously making an image would create a much
> better printer file.
>
> Question:
> What is the best (publication quality) way to create
> an image file of graphical output? I would prefer
> postscript, to be consistent with all the other
> figures I do. Are there any scalable image formats?

If you render the image on-screen, then SAVEIMAGE will capture it to a
GIF, JPEG, TIFF etc:
http://cimss.ssec.wisc.edu/~gumley/imagetools.html

You can print the resulting image using whatever image display tool you
have available. On a PC, insert the image into a word processor document
and print it from there. On a UNIX box, display the image in xv, save it
to Postscript format, and print the Postscript version.

Cheers,
Liam.
Re: best way to ps an image [message #18590 is a reply to message #18587] Wed, 19 January 2000 00:00 Go to previous message
bjackel is currently offline  bjackel
Messages: 10
Registered: September 1993
Junior Member
Hi Bob

rgs wrote:
> Question:
> What is the best (publication quality) way to create
> an image file of graphical output? I would prefer
> postscript, to be consistent with all the other
> figures I do. Are there any scalable image formats?

We're pretty fond of making big windows, capturing them
to JPEGs, then using jpeg2ps to convert them to EPS files.
Level 2 postscript actually supports JPEG, so the EPS files
are only about 10k larger than the original JPEG, with just
a bit of wrapper around them. The result can be included
in TeX or PDF documents.

Here's a link to jpeg2ps:

http://www.pdflib.com/jpeg2ps/index.html

Hope this helps.
Brian
Re: best way to ps an image [message #18591 is a reply to message #18587] Wed, 19 January 2000 00:00 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
rgs <dejastockwell@my-deja.com> writes:
> Hail,
>
> This is kinda a dumb question that I'm pretty
> sure I know what to do, but I'm interested to
> see if anyone has already done this, and has a
> good solution.
>
> I am outputing data into a plot window (in direct graphics)
> that requires a large number of solid polyfill rectangles
> (on the order of a few million).
> When I write this to postcript, it makes a huge file
> (50 meg up to ~few hundred), and of course is slow
> to print and view etc.
>
> (drawing to screen isn't a problem. Sure it takes a few seconds,
> but no big deal.)
>
> Obviously making an image would create a much
> better printer file.
>
> Question:
> What is the best (publication quality) way to create
> an image file of graphical output? I would prefer
> postscript, to be consistent with all the other
> figures I do. Are there any scalable image formats?

Could you not do the following?

* Read the screen image with TVRD
* Write the image to disk with WRITE_GIF, or whatever format
OR
* Replot the image using TV, or TVIMAGE (from David Fanning) and send
it to postscript.

Those are the kinds of things that I do.

Good luck,
Craig


--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
Re: best way to ps an image [message #18594 is a reply to message #18587] Wed, 19 January 2000 00:00 Go to previous message
Christophe Marque is currently offline  Christophe Marque
Messages: 11
Registered: January 1999
Junior Member
> Question:
> What is the best (publication quality) way to create
> an image file of graphical output? I would prefer
> postscript, to be consistent with all the other
> figures I do. Are there any scalable image formats?
>
> Cheers,
> bob

You can create a tiff file and the use tiff2ps avaible for UNIx or linux
systems.
Using:
tiff2ps -2 -O output.ps intput.tiff
will create a Postscipt level 2 file whose size is roughtly the same of the
tiff file (a little bit more of course)

Bye,
christophe
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: unsolicited endorsement of Fanning's book
Next Topic: Re: Accessing "main" level variables

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

Current Time: Wed Oct 08 19:03:57 PDT 2025

Total time taken to generate the page: 0.00212 seconds