Well, I guess there are about half a dozen functions to get the=20
various dimensions of device window, page and viewports dimensions.=20
I went ahead and printed out all those dimensions.
This is what I get (device ps):
Get parameters that define current device-space window=20
plgdidev(margin, aspect, jx, jy) =3D =20
0.0000 0.0000 0.0000 0.0000
Get parameters that define current plot-space window=20
plgdiplt( xmin, xmax, ymin, ymax) =3D =20
0.0000 0.0000 1.0000 1.0000
Get page parameters=20
plgpage( xpix, ypix, xlen, ylen, xoff, yoff) =3D =20
0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
Get current subpage parameters=20
plgspa( xmin, xmax, ymin, ymax)=3D =20
0.0000 255.9289 0.0000 191.9289
Get viewport limits in normalized device coordinates=20
plgvpd( xmin, xmax, ymin, ymax)=3D =20
0.1400 0.9125 0.1167 0.8833
So, looks like subpage has aspect < 1.
If I use plsdiori() before or after plinit(), I do get portrait,=20
but none of the dimensions reported above change! That would=20
explain why I get a "landscape" plot shrunk onto a portrait page.
Executing "plspage(0.0, 0.0, 191.9289, 255.9289, 0.0, 0.0)"
in an attempt to swap the dimensions of the page has not effect,
I am running out of combinations/permutations here, what am I doing
wrong? Is it really not possible to do what I want to do?
I am at the end of this rope.
Any hints would be much appreciated.
From: Maurice LeBrun [mailto:mjl@...
Sent: Saturday, September 01, 2007 12:44 AM
To: Salazar, German P21322
Subject: Re: [Plplot-general] post-processing with plrender.
Salazar, German P21322 writes:
> Say, if I have generated a meta file and then use plrender to turn it
> into a postscript file, the plot is in landscape (aspect < 1), i.e.,
> bottom of the plot is to the right of the sheet and the plot occupies
> the entire page.=20
> Can I generate a portrait plot using plrender? =20
> When I try, all I get is the plot with the same aspect ratio but a
> smaller so that the bottom of the plot (the side that used to be
> has been reduced in size to make it fit onto the width (8.5") of a
> letter size page. So, now, there is a lot of space at the top and
> of the plot...is this clear?=20
> What I would like to be able to achieve is to end up with the plot in
> portrait but with an aspect ratio > 1, so that it occupies the entire
> I have tried many combinations of " plrender -freeaspect -a and
> " but nothing seems to work. what am I missing something?=20
You are correct -- unfortunately plmeta & plrender do not handle
swaps well. I've been meaning to fix that bug for years (literally).
the metafile capability hasn't kept up with the advanced features
other drivers.. ideally one could save in metafile format and later
the result going direct to a physical device, which is after all the
point of a metafile. But as written it is simply too low-level. Of
one could support all manner of higher-level commands in theory -- for
a few years back I started on adding string support but never finished
Back in the early 90's when I was doing big simulations & disk space was
scarce, the metafile driver was invaluable as a way to generate graphics
on the fly yet still be able to print out & manipulate selected plots
These days, disk is so cheap that I never use that paradigm anymore,
preferring instead to invest in a state file capability & related