[ncl-talk] Bug in gsn_histogram
Carl Schreck
cjschrec at ncsu.edu
Mon Mar 2 13:40:54 MST 2015
Sorry to come back with another binning issue, but I've found a similar
problem in gsn_histogram.
This time, the problem only happens with the right-most bin, and only when
the data can equal the bin boundary, such as with integer data.
Here's some simple sample code and a plot. Notice how in the first group of
figures, when the data is a float, the bars move seamlessly to the left as
the range increases.
In the second half of the figures, the data are integer, and sometimes will
equal the top boundary. In this case, the rightmost bar changes before as a
new bar is added to its right.
Let me know if you have any questions or suggestions. Thanks!
Carl
--
<http://www.cicsnc.org/>
<http://www.researcherid.com/rid/B-8711-2011>
* Cyclone <http://www.cyclonecenter.org/>*Center.org
<http://www.cyclonecenter.org/> *Carl J. Schreck III, PhD*
*Research Associate*
Cooperative Institute for Climate and Satellites NC <http://www.cicsnc.org/>
North Carolina State University <http://ncsu.edu/>
NOAA's National Climatic Data Center <http://ncdc.noaa.gov/>
151 Patton Ave, Asheville, NC 28801
e: cjschrec at ncsu.edu
o: +1 828 257 3140
Publications
<http://scholar.google.com/citations?hl=en&user=th8ONEcAAAAJ&view_op=list_works&sortby=pubdate>
monitor.cicsnc.org/mjo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150302/3d9c25b7/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_histogram.ncl
Type: application/octet-stream
Size: 2319 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150302/3d9c25b7/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_histogram.pdf
Type: application/pdf
Size: 620211 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150302/3d9c25b7/attachment-0001.pdf
More information about the ncl-talk
mailing list