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

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Wed Dec 29 2010 - 16:09:55 MST

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
Received on Wed Dec 29 16:10:01 2010

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