[ncl-talk] BoxCenters in pyNGL

Clinton Rowe crowe1 at unl.edu
Fri Aug 3 10:43:59 MDT 2018


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>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180803/30a9f968/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: contour2.py
Type: application/octet-stream
Size: 2012 bytes
Desc: contour2.py
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180803/30a9f968/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: contour2.png
Type: image/png
Size: 416060 bytes
Desc: contour2.png
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20180803/30a9f968/attachment-0001.png>


More information about the ncl-talk mailing list