Re: Size of viewport

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Feb 25 2010 - 10:55:03 MST

Hi Ivan,

You said "multi-panel" plot, but then you said "the plot would fit
in letter sized paper". Are you drawing multiple plots on one page or
a single plot?

If you are drawing multiple plots that are the same size, have you
tried using Ngl.panel instead of using the vpXXXX resources?
This will take care of resizing the plots so that they fit nicely on
the page.

If you are trying to position the plots yourself, then this is going to
be done on an invisible unit square, and afterwards you will have
to set some special PostScript resources to resize these plots so they
are maximized in a non-square area (this is what "nglMaximize" does for
you, but this only works for individual plots, or Ngl.panel).

I can help you with the latter part, but first I want to see if
will work for you.


On Feb 25, 2010, at 9:48 AM, Ivan Lima wrote:

> I'm trying to create a multi-panel plot using vpXF, vpYF, vpWidthF
> and vpHeightF. The plot is taller than it is wide and it would fit
> nicely in letter sized paper. nglPaperOrientation is set to
> 'portrait', but no matter what I do I can only plot inside a
> relatively short rectangular area with big margins at the top and
> bottom of the page. I tried changing nglPaperMargin, nglPaperWidth,
> nglPaperHeight and wkPaperSize but they don't seem to have any
> effect. How do I reduce the top and bottom margins in the plot? Or
> for that matter, how do I control the size of the margins so I can
> use more area in the page without "clipping" part of my plot?
> Thank you for your help,
> --
> Ivan Lima
> Woods Hole Oceanographic Institution, MC&G MS #25
> 360 Woods Hole Road, Woods Hole, MA 02543-1543 USA
> _______________________________________________
> pyngl-talk mailing list
> List instructions, subscriber options, unsubscribe:

pyngl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Thu Feb 25 10:55:10 2010

This archive was generated by hypermail 2.1.8 : Mon Mar 01 2010 - 09:12:40 MST