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

Home » Public Forums » archive » Sizing Postscript output
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
Sizing Postscript output [message #403] Thu, 27 August 1992 05:51 Go to next message
kaplan is currently offline  kaplan
Messages: 1
Registered: August 1992
Junior Member
I need a reliable way to make WYSIWYG X-window plots of what will eventually
be postscript driven paper output. The basic problem seems to be controlling
the relationship between font size and plot size.

Currently, in order to make postscript output of PV-WAVE graphs, I have been
opening a postscript device as follows:

set_plot,'ps'
device,filename='graph.ps',xsize=6.0,ysize=6.0,/inches,yoffs et=2,xoffset=+1

and then I resume plotting to the screen something like this:

device,/close
set_plot,'X'
window,0,xsize=500,ysize=500

For different plots, I play with the obvious parameters in the device line.

Does anyone know a formula relating X-window pixel sizes to postscript sizes.
Something which requires me to measure my X-window pixels before beginning
would be just fine.

Many thanks,

Peter (kaplan@sol1.lrsm.upenn.edu)
Re: Sizing Postscript output [message #547 is a reply to message #403] Fri, 28 August 1992 05:09 Go to previous message
zawodny is currently offline  zawodny
Messages: 121
Registered: August 1992
Senior Member
I think that we have all run into this problem. I have found that setting
the aspect ratios (ratio of height to width) of the postscript region and the
window the same helps alot. There is still a small problem of the fonts not
being the same size between X-windows and Postscript. This is just a hint at
getting nearer to a WYSIWYG result. Hope that you have better luck than I did,
I settled for a WYSICTWYWG (What You See Is Close To What You Will Get).

Good Luck
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- *-*-*-*-*-*-*-*-*-*
Joseph M. Zawodny (KO4LW) NASA Langley Research Center
zawodny@arbd0.larc.nasa.gov MS-475, Hampton VA, 23681
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*- *-*-*-*-*-*-*-*-*-*
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Giant crosshairs
Next Topic: WANTED: 2 IDL routines

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

Current Time: Wed Oct 08 15:34:17 PDT 2025

Total time taken to generate the page: 0.00487 seconds