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

Home » Public Forums » archive » Re: Saving Plot Products
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: Saving Plot Products [message #31882] Mon, 26 August 2002 23:47 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Justin Sieglaff wrote:
>
> Hi everyone....hopefully someone can help me out. I am creating some
> plots using the PLOT command and was wondering how I could a)specify
> the size of the plot and b)save the plots as JPEGs/PNGs, etc. Any
> help would be great!
>
> Thanks,
>
> Justin Sieglaff

Why don't using Postscript Output?

old_dev=!D.name
SET_PLOT,'PS'

DEVICE,FILENAME='my_output.ps', PREVIEW=0,$
/COLOR, YOFFSET=27, YSIZE=16,XOFFSET=2,XSIZE=25,$
/LANDSCAPE

TEK_COLOR

x=INDGEN(37,/FLOAT)*10
y=SIN(x*!dtor)
PLOT,x,y,/nodata

OPLOT,x,y,linestyle=3,PSYM=-1,THICK=2,COLOR=2
DEVICE,/CLOSE
SET_PLOT,old_dev


If you then like to have an image you can use for example

pstoimg -type png -aaliastext -crop a -density 150 -flip r90
my_output.ps

display my_output.png

Comment from the help:
pstoimg - Convert a PostScript file to a bitmap image
using Ghostscript and the Netpbm utilities

The output as image has this way a much higher quality!


regards

Reimar


--
Reimar Bauer

Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Double thumbed slider or equivalent?
Next Topic: Loading picture into compound widget

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

Current Time: Sun Oct 12 05:20:38 PDT 2025

Total time taken to generate the page: 1.99803 seconds