Re: Postscript device weirdness [message #58585] |
Thu, 07 February 2008 08:08 |
mchinand
Messages: 66 Registered: September 1996
|
Member |
|
|
In article <7ade1338-ec80-4ab4-8c9e-2e43f29d2ab8@c23g2000hsa.googlegroups.com>,
nathan12343 <nathan12343@gmail.com> wrote:
> Hi all-
>
>
> 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?
>
You have swapped the values for the offsets between each case not just the
order of the keywords.
|
|
|
Re: Postscript device weirdness [message #58589 is a reply to message #58585] |
Thu, 07 February 2008 06:14  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
nathan12343 writes:
> 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?
I don't have IDL 6.3 installed anymore, but I think your
office mate is playing some kind of prank on you. :-)
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.")
|
|
|