Re: [pyngl-talk] Setting figure width/height

From: Will Thurston <willthurston_at_nyahnyahspammersnyahnyah>
Date: Tue Aug 14 2012 - 16:34:30 MDT

G'day Mary,

Thanks for that. I'm about to go on leave, so will try it out when I get
back in a couple of weeks.

Cheers,
Will.

On 15 August 2012 07:18, Mary Haley <haley@ucar.edu> wrote:

> Hi Will,
>
> Sorry we didn't answer this sooner. Both Dave and I have been on vacation.
>
> Please try also setting:
>
> wkres.wkPaperSize = ""
>
> I'll fix PyNGL so this is not required. I will also correct the
> documentation error.
> Thanks for pointing this out!
>
> --Mary
>
> On Aug 9, 2012, at 8:19 PM, Will Thurston wrote:
>
> > Hi PyNGLers,
> >
> > I've recently been trying to open a workstation with a custom figure
> > size, using a script starting something like this:
> >
> > #!/usr/bin/env python
> > import numpy as np
> > import Ngl
> > wks_type = 'ps'
> > wkres = Ngl.Resources()
> > wkres.wkPaperWidthF = 4.0
> > wkres.wkPaperHeightF = 4.0
> > wks = Ngl.open_wks(wks_type, 'size', wkres)
> >
> > [...]
> >
> > However, when I run the script I get told "warning:nhlGetPaperSize:
> > Both page wkPaperWidthF/wkPaperHeightF and wkPaperSize resources
> > given; using wkPaperSize", even though I haven't set wkPaperSize
> > anywhere (I have also tried setting it to False, but to no avail). Has
> > anyone encountered/fixed this problem before?
> >
> > I am using Ngl 1.4.0
> >
> > Also, a minor comment. On the Ngl.open_wks webpage
> > (http://www.pyngl.ucar.edu/Functions/Ngl.open_wks.shtml) the
> > wkPaperWidthF and wkPaperHeightF resources are set with an NCL like
> > wks_res@wkPaperWidthF rather than a PyNGL wks_res.wkPaperWidthF
> >
> > Cheers,
> > Will.
> > _______________________________________________
> > pyngl-talk mailing list
> > List instructions, subscriber options, unsubscribe:
> > http://mailman.ucar.edu/mailman/listinfo/pyngl-talk
>
>
Received on Tue Aug 14 16:34:32 2012

This archive was generated by hypermail 2.1.8 : Thu Aug 23 2012 - 16:16:15 MDT