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

Home » Public Forums » archive » Postscript device coordinates
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
Postscript device coordinates [message #50072] Thu, 31 August 2006 10:23
greg michael is currently offline  greg michael
Messages: 163
Registered: January 2006
Senior Member
I'm trying to make a plot with an exact print-size - 2 cm per tick mark
- using the PS device.

Setting up the plot window works ok:

set_plot,'PS'

xrange=[-3,1]
yrange=[-4,2]
xticks=xrange[1]-xrange[0]
yticks=yrange[1]-yrange[0]


device,/encapsulated,filename="test.eps",/helvetica,xsize=xticks*2.+3.,ysize=yticks*2.+3.

Then I hoped to be able to specify the plot region in centimetres using
'position':


plot,[0],[0],/nodata,xrange=10.^xrange,/xlog,yrange=10.^yran ge,/ylog,/isotropic,$
position=[2.,2.,2.+xticks*2.,2.+yticks*2.],/device,$
xticks=xticks,yticks=yticks

device,/close_file

Seems the device coordinates are not cm, since all I get is a spot in
the bottom left corner. By trial and error, I find that if I multiply
the position array by 1000, I get more or less something which fills
the window. But I don't know where this 1000 figure comes from: does
anyone know what it means? And how I can calculate the exact value?

many thanks,
Greg
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: readcol with empty fields
Next Topic: Re: Postscript device coordinates

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

Current Time: Wed Oct 08 15:26:39 PDT 2025

Total time taken to generate the page: 0.00493 seconds