[ncl-talk] Bar Graph/Histogram plot question

Barry Lynn barry.h.lynn at gmail.com
Sun Apr 23 02:23:11 MDT 2017

Hi:

I have data specified as below.

https://www.ncl.ucar.edu/Applications/histo.shtml

Example # 6.

I set x = "Obs" and y = "Forecast" below.

The plot I get spreads the obs and forecast data on the x axis (where the x
axis conforms to the value of each).

The y axis is labeled "Frequency."

However, this is not a histogram/bar graph I am familiar with.  I am not
sure how frequency is calculated (perhaps out of the total). In any case, I
want to plot the x axis as intervals of 0 to 100 (by 10).  I want the
y-axis to show the values in the obs/forecasts that conform to these
intervals.  (Kaleidagraph can do this easily, but that's not the point
(obviously)).

I see no such example of how to do this  -- even though this is often how
bar graphs are presented.

Barry

z = new((/2,dimsizes(x)/),integer)
z(0,:) = x
z(1,:) = y

Percent, Obs, Forecast

0    0.0,    0.0,

1  227.0,  212.2,

4  375.0,  176.7,

8  201.0,  141.1,

12   62.0,  143.2,

18   26.0,  327.5,

24    6.0,  199.5,

30    1.0,   50.2,

36    2.0,    9.4,

100    0.0,    4.0,

--
Barry H. Lynn, Ph.D
Senior Lecturer,
The Institute of the Earth Science,
The Hebrew University of Jerusalem,
Givat Ram, Jerusalem 91904, Israel
Tel: 972 547 231 170
Fax: (972)-25662581

C.E.O, Weather It Is, LTD
Weather and Climate Focus
http://weather-it-is.com
Jerusalem, Israel
Local: 02 930 9525
Cell: 054 7 231 170
Int-IS: x972 2 930 9525
US 914 432 3108
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170423/42826480/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: histo.000001.png
Type: image/png
Size: 59120 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20170423/42826480/attachment.png