[ncl-talk] BoxCenters in pyNGL

Clinton Rowe crowe1 at unl.edu
Tue Aug 21 07:00:16 MDT 2018


Hi Mary,

I upgraded to the latest pyNGL release and add lbLabelStrings to my code, and I still get the last box labeled with a generic label (Label_13), even though I have 14 labels defined.  On my first try, I accidentally used 30 as my step size when generating the labels and that made no difference in how the labelbar was labeled.

What am I missing here?

Clint

========================================================
Clinton M. Rowe
Professor and Graduate Chair         phone:(402)472-1946
Earth & Atmospheric Sciences           fax:(402)472-4917
University of Nebraska- Lincoln           crowe1 at unl.edu<mailto:crowe1 at unl.edu>

From: Mary Haley <haley at ucar.edu>
Sent: Thursday, August 16, 2018 7:28 PM
To: Clinton Rowe <crowe1 at unl.edu>
Cc: ncl-talk at ucar.edu
Subject: Re: [ncl-talk] BoxCenters in pyNGL

Hi Clint,

Sorry for taking so long to get back to this. I'm slowing climbing my way back to normalcy after a few weeks of constant meetings.

I'm wondering if this example has been fixed in the latest PyNGL, because it worked fine for me, although one label is missing because once you go to box centers, you have to provide an additional label. (You can add the extra label with lbLabelStrings.)

I installed PyNGL and PyNIO with:

conda create --name pyn_env --channel conda-forge pynio pyngl

and then ran your attached script, with the resultant attached image.

Do you know what version of PyNGL you're running? You can print "Ngl.__version__
" for this information.

--Mary

On Fri, Aug 3, 2018 at 10:43 AM, Clinton Rowe <crowe1 at unl.edu<mailto:crowe1 at unl.edu>> wrote:
Mary, Rick, et al.,

I transitioned a routine from NCL to pyNGL and the BoxCenters label resource is not working.  Labels are only drawn at alternate interior lines on the labelbar, rather than the box centers as desired.  As an example, I added one line to contour2.py to request labels at the center of the boxes.  I’ve attached the modified example and output png.

Thanks,
Clint

========================================================
Clinton M. Rowe
Professor and Graduate Chair         phone:(402)472-1946
Earth & Atmospheric Sciences           fax:(402)472-4917
University of Nebraska- Lincoln           crowe1 at unl.edu<mailto:crowe1 at unl.edu>

_______________________________________________
ncl-talk mailing list
ncl-talk at ucar.edu<mailto:ncl-talk at ucar.edu>
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk<https://urldefense.proofpoint.com/v2/url?u=http-3A__mailman.ucar.edu_mailman_listinfo_ncl-2Dtalk&d=DwMFaQ&c=Cu5g146wZdoqVuKpTNsYHeFX_rg6kWhlkLF8Eft-wwo&r=ubRAum_abJ_VeyWwkZyVzQ&m=8cUMz0iNSykheFbeusuXgwm6yRiLJGxOl84WZqwmJNc&s=bnEJJeofaPnySgZWsqUV6F4_5KhWCcFLPajWl_fIn34&e=>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180821/d84e283f/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: contour2.py
Type: application/octet-stream
Size: 2174 bytes
Desc: contour2.py
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180821/d84e283f/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: contour2.png
Type: image/png
Size: 416096 bytes
Desc: contour2.png
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180821/d84e283f/attachment-0001.png>


More information about the ncl-talk mailing list