Well, I guess there are about half a dozen functions to get the 
various dimensions of device window, page and viewports dimensions. 
I went ahead and printed out all those dimensions.

This is what I get (device ps):

 Get parameters that define current device-space window 
 plgdidev(margin,   aspect,     jx,         jy) =     
          0.0000    0.0000      0.0000      0.0000
 
 Get parameters that define current plot-space window 
 plgdiplt(  xmin,   xmax,   ymin,   ymax) =     
            0.0000  0.0000  1.0000  1.0000
 
 Get page parameters 
 plgpage(   xpix,   ypix,   xlen,   ylen,   xoff,   yoff) =     
            0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
 
 Get current subpage parameters 
 plgspa(    xmin,   xmax,      ymin,    ymax)=     
            0.0000  255.9289   0.0000   191.9289
 
 Get viewport limits in normalized device coordinates 
 plgvpd(    xmin,   xmax,   ymin,   ymax)=     
            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, 
but none of the dimensions reported above change!  That would 
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,
whatsoever. 

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.

G.Salazar



 

-----Original Message-----
From: Maurice LeBrun [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 01, 2007 12:44 AM
To: Salazar, German P21322
Cc: plplot-general@lists.sourceforge.net
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.,
the
 > bottom of the plot is to the right of the sheet and the plot occupies
 > the entire page. 
 >  
 > Can I generate a portrait plot using plrender?  
 >  
 > When I try, all I get is the plot with the same aspect ratio but a
lot
 > smaller so that the bottom of the plot (the side that used to be
11.5")
 > 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
bottom
 > of the plot...is this clear? 
 >  
 > 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
 > page. 
 >  
 > I have tried many combinations of  " plrender -freeaspect  -a  and
-ori
 > "  but nothing seems to work. what am I missing something? 

You are correct -- unfortunately plmeta & plrender do not handle
orientation
swaps well.  I've been meaning to fix that bug for years (literally).
Also
the metafile capability hasn't kept up with the advanced features
available in
other drivers.. ideally one could save in metafile format and later
reproduce
the result going direct to a physical device, which is after all the
main
point of a metafile.  But as written it is simply too low-level.  Of
course
one could support all manner of higher-level commands in theory -- for
example
a few years back I started on adding string support but never finished
it.

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
later.
These days, disk is so cheap that I never use that paradigm anymore,
preferring instead to invest in a state file capability & related
analysis
program.

-- 
Maurice LeBrun


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general

Reply via email to