Re: returning frequencies (y-axis values) for histograms

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Thu Dec 30 2010 - 09:00:11 MST

Hi Neil,

There are several attributes returned by gsn_histogram. Maybe want you want is the "NumInBins" attribute.

For more information on other attributes returned, see:

http://www.ncl.ucar.edu/Document/Graphics/Interfaces/gsn_histogram.shtml

--Mary

On Dec 29, 2010, at 4:09 PM, Dennis Shea wrote:

> Is this what you want
>
> hst =gsn_histogram(...)
>
> printVarSummary(hst)
>
> x = hst@MidBarLocs
> y = hst@Percentages
>
> print(x+" "+y)
>
> On 12/29/10 3:54 PM, Neil Berg wrote:
>> Hello NCL community,
>>
>> I am trying to plot a line of best fit corresponding to a histogram generated by a 1-D dataset of wind speeds. In order to plot the best fit line, I will need to know the frequency (the y-axis values) that is found for each binned wind speed (prescribed x-axis values). I am stuck, however, on printing the frequencies that correspond to each bin interval.
>>
>> Also, is there an easier method to generating a best fit line over a histogram than the procedure I have described above?
>>
>> Thank you in advance for your help and suggestions,
>>
>> Neil Berg
>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Dec 30 09:00:19 2010

This archive was generated by hypermail 2.1.8 : Tue Jan 04 2011 - 09:16:52 MST