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

Home » Public Forums » archive » Postscript device weirdness
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 weirdness [message #58594] Thu, 07 February 2008 00:57 Go to next message
nathan12343 is currently offline  nathan12343
Messages: 14
Registered: August 2007
Junior Member
Hi all-

I was wondering if someone could explain to me why the postscript
device behaves in a certain particularly strange way. I've been
trying to size and position a plot for print-out using the following
code, which will leave the offsets incorrectly set as their default
values:

device,filename='plot.ps',/inches,xoffset=3,yoffset=2,xsize= 5,ysize=5

When I print out the postscript file, the plot sits on the bottom left
corner of the page, as if I hadn't set the xoffset and yoffset
keywords at all. However, the following code works fine:

device,filename='plot.ps',/inches,xsize=5,ysize=5,xoffset=2, yoffset=3

What I'm wondering is why on earth the device procedure cares about
the order of the parameters. I'm not aware of any other IDL
procedures that behave this way. Is there some reason why it does, or
is it some kind of bug in IDL 6.3?

Thanks for any insight anyone can provide.

-Nathan Goldbaum
Re: Postscript device weirdness [message #58650 is a reply to message #58594] Fri, 08 February 2008 12:59 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
caitouer writes:

> How you set up offsets depends on the layout of your figures. I mean
> portrait or landscape. You could find more on manual. I do agree with
> you it takes some time to figure these things out and get a nice
> figure.

Without using PSCONFIG, you mean. ;-)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Postscript device weirdness [message #58651 is a reply to message #58594] Fri, 08 February 2008 12:52 Go to previous message
caitouer is currently offline  caitouer
Messages: 21
Registered: June 2005
Junior Member
On Feb 7, 3:57 am, nathan12343 <nathan12...@gmail.com> wrote:
> Hi all-
>
> I was wondering if someone could explain to me why the postscript
> device behaves in a certain particularly strange way.  I've been
> trying to size and position a plot for print-out using the following
> code, which will leave the offsets incorrectly set as their default
> values:
>
> device,filename='plot.ps',/inches,xoffset=3,yoffset=2,xsize= 5,ysize=5
>
> When I print out the postscript file, the plot sits on the bottom left
> corner of the page, as if I hadn't set the xoffset and yoffset
> keywords at all.  However, the following code works fine:
>
> device,filename='plot.ps',/inches,xsize=5,ysize=5,xoffset=2, yoffset=3
>
> What I'm wondering is why on earth the device procedure cares about
> the order of the parameters.  I'm not aware of any other IDL
> procedures that behave this way.  Is there some reason why it does, or
> is it some kind of bug in IDL 6.3?
>
> Thanks for any insight anyone can provide.
>
> -Nathan Goldbaum

If I read it correctly, there two lines have different parameters too:

xoffset=3, yoffset=2
xoffset=2, yoffset=3 .

How you set up offsets depends on the layout of your figures. I mean
portrait or landscape. You could find more on manual. I do agree with
you it takes some time to figure these things out and get a nice
figure.

Xia
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Install IDL 6.1 on MacBook Pro
Next Topic: Re: Install IDL 6.1 on MacBook Pro

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

Current Time: Fri Oct 10 04:15:17 PDT 2025

Total time taken to generate the page: 0.71825 seconds