<div dir="ltr">Just to add:<div><br></div><div>The bar graph page says:</div><div><br></div><div><span style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:13.3333px;background-color:rgb(255,231,198)">Bar charts (in this context) are simply XY plots that are drawn with bars for each X,Y point. To get bars instead of curves when using </span><a href="https://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_csm_xy.shtml" style="margin:0px;padding:0px;text-decoration-line:none;color:rgb(133,45,133);font-family:verdana,sans-serif;font-size:13.3333px"><strong style="margin:0px;padding:0px">gsn_csm_xy</strong></a><span style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:13.3333px;background-color:rgb(255,231,198)">, set the special attribute res@</span><a href="https://www.ncl.ucar.edu/Document/Graphics/Resources/gsn.shtml#gsnXYBarChart" style="margin:0px;padding:0px;text-decoration-line:none;color:rgb(133,45,133);font-family:verdana,sans-serif;font-size:13.3333px"><em style="margin:0px;padding:0px">gsnXYBarChart</em></a><span style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:13.3333px;background-color:rgb(255,231,198)"> = True.</span><p style="margin:10px 0px 20px;padding:0px;color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px;line-height:12pt">There is a separate page for creating <a href="https://www.ncl.ucar.edu/Applications/histo.shtml" style="margin:0px;padding:0px;text-decoration-line:none;color:rgb(133,45,133)">histograms</a>, where the data is binned according to ranges of values or actual values.</p><p style="margin:10px 0px 20px;padding:0px;color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px;line-height:12pt">It may be that I can use bar charts to make graphs directly. However, it is written that "data is binned according to ranges of values or actual values."</p><p style="margin:10px 0px 20px;padding:0px;color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px;line-height:12pt">Maybe it needs to be clear that the histogram program will bin the data provided; i.e., it is not expecting to receive already binned data. Lastly, I did want to plot the bars within ranges, and I am not sure if the bar graph can do this or not.</p><p style="margin:10px 0px 20px;padding:0px;color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px;line-height:12pt">Barry</p><p style="margin:10px 0px 20px;padding:0px;color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px;line-height:12pt"><br></p><p style="margin:10px 0px 20px;padding:0px;color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px;line-height:12pt"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 21, 2017 at 7:23 PM, Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Mary:<div><br></div><div>That's my point. The histogram program is taking the data and binning it.</div><div><br></div><div>However, I've already binned the data, and the data itself already represents the number of data points within each interval.</div><div><br></div><div>I am not sure if bar charts would help or not. I would need to look more closely, but when I looked before it didn't seem to solve my problem (but I was less experienced before).</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Barry</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 21, 2017 at 7:14 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Barry,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I don't understand your question. When you say "<span style="font-size:12.8px">I originally tried to just plot the data in mod_x and obs_x using the standard examples it didn't work." In what way did it not work? Can you provide your data and a script so I can see what you mean?</span></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You shouldn't need to count the values in each range because gsn_histogram does that for you.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For example, here's a 5-line script that draws a very basic histogram. </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default">
<div class="gmail_default"><span class="m_1556260461104440155m_-7504438148129504147gmail-Apple-converted-space" style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><font face="monospace, monospace"> </font></span><span style="font-variant-ligatures:no-common-ligatures;color:rgb(0,0,0)"><font face="monospace, monospace">y = (/3.1,0.5,3.8,3.4,2.1,1.5,2.6,<wbr>2.3,3.6,1.7/)</font><br></span><span style="font-size:small;font-family:monospace,monospace"> wks = gsn_open_wks("png","hist")</span><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> res = True</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> res@gsnHistogramBinIntervals = (/0,1,2,3,4/)</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> plot = gsn_histogram(wks,y,res)</font></div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Note I used intervals of (0,1,2,3,4)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You should see a histogram with four bars:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> First bar = 1 b/c we have one value >=0 and < 1</font></div><div class="gmail_default"><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> Second bar = 2 b/c we have two values >=1 and < 2</font></div><div class="gmail_default"><div class="gmail_default" style="font-size:small"><font face="monospace, monospace"> Third bar = 3 b/c we have three values >=2 and < 3</font></div><div style="font-size:small"><div class="gmail_default"><font face="monospace, monospace"> Fourth bar = 4 b/c we have four values >=3 and <=4</font></div></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Note the last bar is special, because it contains all values less-than-or-equal-to the last interval.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">We do have a single meteogram example, and several bar chart examples, if you simply want to draw bars instead of XY plots.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">See:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/bar.shtml" target="_blank">http://www.ncl.ucar.edu/Applic<wbr>ations/bar.shtml</a><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Applications/meteo.shtml" target="_blank">http://www.ncl.ucar.edu/Applic<wbr>ations/meteo.shtml</a><span class="m_1556260461104440155HOEnZb"><font color="#888888"><br></font></span></div><span class="m_1556260461104440155HOEnZb"><font color="#888888"><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></font></span></div></div><div class="gmail_default" style="font-size:small"><br></div></div><div class="m_1556260461104440155HOEnZb"><div class="m_1556260461104440155h5"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 21, 2017 at 7:08 AM, Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Mary:<div><br></div><div>Thank you for the suggestions yesterday. The histogram looks okay now.</div><div><br></div><div>I'd like to bring to your attention a couple of things.</div><div><br></div><div>1) I believe that the examples you have on the site do not necessarily (as is) plot histograms typically drawn in meteorological papers. For instance, when I originally tried to just plot the data in mod_x and obs_x using the standard examples it didn't work. For this reason, I created intervals of data whose index is the interval value and the number of times the index value appears is equal the value of the data (obs_x or obs_y) within. </div><div><br></div><div>For instance, if there is an interval with 10001 grids with dBZ values (radar reflectivity) within this interval then that index will have 10001 values, all equal to the value of the index.</div><div><br></div><div>2) I do this with this loop and am wondering if there is an more concise way to write it.</div><div><br></div><div>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>i_num = 0</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>i_end = 0</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>i_beg = 0</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>do i_int = 0,dims_obs_x-1</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>i_end = i_beg + floattointeger(obs_x(i_int))</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>do x_int = i_beg,i_end-1</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>x_new(i_num) = i_int</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>i_num = i_num + 1</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>end do</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>if (i_beg.eq.i_end)then</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>x_new(i_num) = i_int</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>i_num = i_num + 1</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>end if</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>i_beg = i_end</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-Apple-converted-space"> </span>end do</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures">3) If I take your program and substitute my data (num_x) at the top I get the strange figure attached (00002.png). We're I to put this data into a typical graphing program, the data would come out correctly as histo_mod.pdf. </span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures">Perhaps I've overlooked something?</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures">Thanks,</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail-s1" style="font-variant-ligatures:no-common-ligatures">Barry</span></p></div></div><div class="m_1556260461104440155m_-7504438148129504147HOEnZb"><div class="m_1556260461104440155m_-7504438148129504147h5"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 20, 2017 at 7:19 PM, Mary Haley <span dir="ltr"><<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">Barry,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You don't want to use discrete bin intervals, unless you are wanting to count the # of values *exactly equal* to a value.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">For a range of values, use gsnHistogramBinIntervals.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please read over the histogram page carefully, because we have many examples on this page that talk about the different histogram options.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">As I think I mentioned before, I updated example histo_2.ncl to show how to explicitly request an array of bin intervals.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Run the attached script, will hopefully illustrate the difference between gsnHistogramBinIntervals and gsnHistogramDiscreteBinValues.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878h5">On Mon, Nov 20, 2017 at 8:54 AM, Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878h5"><div dir="ltr">Hello:<div><br></div><div>I found the coding lines that allows me to map the number of intervals, explicitly. I found the coding lines that allow me to specify how many of the labels I want to map.</div><div><br></div><div>That's here:</div><div><br></div><div><a href="https://www.ncl.ucar.edu/Applications/Scripts/histo_3.ncl" target="_blank">https://www.ncl.ucar.edu/Appli<wbr>cations/Scripts/histo_3.ncl</a><br></div><div><br></div><div><pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"> res@tmXBLabelStride = 2 ; every other x-label
res@gsnHistogramDiscreteBinVal<wbr>ues = ispan(0,25,1)
</pre></div><div>However, I don't see how to change the number of labels to be different from their default number, which equals the number of tmXBValues.</div><div><br></div><div>I need to set the latter so that I can add more than 9 labels.</div><div><br></div><div>Thank you</div><div><br></div><div><br></div><div>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = -9</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(1)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 0</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(2)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 9</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(3)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 18</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(4)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 27</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(5)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 36</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(6)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 45</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(7)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 54</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(8)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>res@tmXBLabels = 63</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(0)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.0555556</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(1)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.166667</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(2)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.277778</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(3)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.388889</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(4)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.5</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(5)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.611111</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(6)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.722222</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(7)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.833333</span></p>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-s1" style="font-variant-ligatures:no-common-ligatures">(8)<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-Apple-tab-span" style="white-space:pre-wrap"> </span>tmXBValues = 0.944444</span></p><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 20, 2017 at 3:01 PM, Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi:<div><br></div><div>I can get the labels to display correctly if I use:</div><div><br></div><div>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmXBLabels = int_radar(::3)</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font color="#000000">However, the histogram program is amalgamating the smaller bins into 10 sized default bins.</font></span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><font color="#000000"><br></font></span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1"><font color="#000000"><font face="Courier New"><span style="font-variant-ligatures:no-common-ligatures">I would hope that there is a way to explicitly tell the histogram program to use all the interval data (23 intervals.</span></font></font></span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1"><font color="#000000"><font face="Courier New"><span style="font-variant-ligatures:no-common-ligatures"><br></span></font></font></span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1"><font color="#000000"><font face="Courier New"><span style="font-variant-ligatures:no-common-ligatures">I tried setting:</span></font></font></span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1"><font color="#000000"><font face="Courier New"><span style="font-variant-ligatures:no-common-ligatures"><br></span></font></font></span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-stretch:normal;line-height:normal;background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1">
</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmXBMode<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>= "</span><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s2" style="font-variant-ligatures:no-common-ligatures;background-color:rgb(230,230,0)">Manu</span><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures">al"</span><br></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)">and creating manual tick marks, but then my histogram labels go only from 0 to 1.</p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)">As below.</p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>rad_inc = 3./(int_radar(dimsizes(int_rad<wbr>ar)-1)+10)</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>print("rad_inc<span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>= " +rad_inc)</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>new_ticks = new(dimsizes(int_radar),float)</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>new_ticks(0)= 0</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>do inc = 1,dimsizes(int_radar)-1,1</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>new_ticks(inc) = new_ticks(inc-1)+rad_inc</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>end do</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>print("new_ticks = " + new_ticks)</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>res@tmXBValues := new_ticks</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)">
</p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail-Apple-converted-space"> </span>res@tmXBLabels := int_radar</span></p></div></div><div class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-HOEnZb"><div class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 19, 2017 at 9:21 PM, Barry Lynn <span dir="ltr"><<a href="mailto:barry.h.lynn@gmail.com" target="_blank">barry.h.lynn@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi:<div><br></div><div>I am having trouble figuring out why my histo.ncl program won't plot data beyond value (x-axis) of 15. This is really dbz data, so the range is correct: -9 to 60. </div><div><br></div><div>I also checked that the labels are present in:</div><div><br></div><div>
<p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail-s1" style="font-variant-ligatures:no-common-ligatures">res@tmXBLabels = int_radar</span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail-p1" style="margin:0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:normal;font-stretch:normal;font-size:20px;line-height:normal;font-family:"Courier New";color:rgb(0,0,0);background-color:rgb(255,255,255)"><span class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail-s1" style="font-variant-ligatures:no-common-ligatures">and the data dimensions are correct (23 elements).</span></p></div><div><br></div><div>However, I don't see any data (and any labels 18-60) indicating that the data has all been displayed. </div><div><br></div><div>Thank you,</div><div><br></div><div>Barry<br clear="all"><div><br></div>-- <br><div class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119m_-63047193133136743gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US <a href="tel:(914)%20432-3108" value="+19144323108" target="_blank">914 432 3108</a><br></div></div></div>
</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail-m_2674000123727965119gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US <a href="tel:(914)%20432-3108" value="+19144323108" target="_blank">914 432 3108</a><br></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878m_-4896509602852143628m_7322931159529804111gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US <a href="tel:(914)%20432-3108" value="+19144323108" target="_blank">914 432 3108</a><br></div></div></div>
</div></div></div>
<br></div></div>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_1556260461104440155m_-7504438148129504147m_-5727092402229648878gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US <a href="tel:(914)%20432-3108" value="+19144323108" target="_blank">914 432 3108</a><br></div></div></div>
</div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_1556260461104440155gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US <a href="tel:(914)%20432-3108" value="+19144323108" target="_blank">914 432 3108</a><br></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Barry H. Lynn, Ph.D<div><div>Senior Lecturer,</div><div><div><span style="color:rgb(136,136,136)">The Institute of the Earth Science, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">The Hebrew University of Jerusalem, </span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Givat Ram, Jerusalem 91904, Israel </span><br style="color:rgb(136,136,136)"></div><span style="color:rgb(136,136,136)">Tel: 972 547 231 170</span><br style="color:rgb(136,136,136)"><span style="color:rgb(136,136,136)">Fax: (972)-25662581</span></div></div><div><span style="color:rgb(136,136,136)"><br></span></div><div>C.E.O, Weather It Is, LTD<br>Weather and Climate Focus<br><a href="http://weather-it-is.com" target="_blank">http://weather-it-is.com</a><br>Jerusalem, Israel<br>Local: 02 930 9525<br>Cell: 054 7 231 170<br>Int-IS: x972 2 930 9525<br>US 914 432 3108<br></div></div></div>
</div>