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

Home » Public Forums » archive » plots for printing
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: plots for printing [message #25969 is a reply to message #25883] Thu, 26 July 2001 15:11 Go to previous messageGo to previous message
Liam E. Gumley is currently offline  Liam E. Gumley
Messages: 378
Registered: January 2000
Senior Member
"Dominik Paul" <dpaul@ukl.uni-freiburg.de> wrote in message
news:9jp1ne$14p$1@n.ruf.uni-freiburg.de...
> I need some plots for my report. And I made these plots with IDL (very
good
> programm for visualisation). Than I take screen shots of the pictures and
> used it for printing.
>
> The result was a wuite bad quality. Does somebody know, how I could do
this
> in a better way to get a good resolution for printing (maybe 300 dpi)?

Several people have recommended PostScript output to solve this problem.
However the PostScript device can be difficult to configure.My usual mode of
operation is to create the plot in a graphics window first, and when I'm
happy with it, I send the plot to the PostScript device with the same aspect
ratio and relative font sizes as the graphics window. The PSON and PSOFF
routines described in my book "Practical IDL Programming" are designed for
this purpose. These programs can be downloaded in the package of sample
programs available at

http://www.gumley.com/PIP/About_Book.html

For example, say you created the following plot in a graphics window:

window, /free
device, decomposed=0
z = dist(64)
z = shift(z, 32, 32)
z = exp(-(z * 0.1)^2)
loadct, 3
shade_surf, z, xstyle=1, ystyle=1, charsize=2, $
pixels=1000, xmargin=[4, 1], ymargin=[1, 0]

To reproduce the plot in a PostScript file:

pson
loadct, 3
shade_surf, z, xstyle=1, ystyle=1, charsize=2, $
pixels=1000, xmargin=[4, 1], ymargin=[1, 0]
psoff

The first call to PSON selects the PostScript device, and opens an output
file named 'idl.ps' by default. It also configures the PostScript device to
have the same aspect ratio as the current graphics window, selects color
output by default, and sets the PostScript font size to the same relative
size as the graphics window. After the plot is created, PSOFF closes the
output file, and reselects the graphics device that was active before PSON
was called.

I used PSON and PSOFF to generate most of the figures in my book, and I
continue to find these routines useful for creating PostScript output. For
more details, see the book.

Cheers,
Liam.
Practical IDL Programming
http://www.gumley.com/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Question about using database like access or dbase?
Next Topic: base widgets growing uncontrollably.... ?

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

Current Time: Fri Oct 10 01:37:46 PDT 2025

Total time taken to generate the page: 1.36192 seconds