help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Histogram Frequency Plot with Custom Bins


From: Manoj Deshpande
Subject: Histogram Frequency Plot with Custom Bins
Date: Tue, 27 Jul 2010 12:09:34 -0400

I am computing frequency counts under each bin, the bin list is dynamic, all i want to do is to display what the counts were under each bin. From documentation it seems like i first need to call hist, and then bar, ( see below). With this approach,however, the xrange values are automatically selected, i want a bar of frequency height at exactly the bin value, and not automatically selected. i see axis() command, which allow me to set max and min values only. i see xrange, which is again a range. Even if i cant fix the x axis values, if there is some way, where i can hover over the bar, and display(frequency,bin) value OR , if it prints (frequency,bin) value in the graph itself, it will be great.

Any suggestions ?

Thanks,
Manoj


 96     bins = [avg avg+2*stdev avg+3*stdev avg+6*stdev avg+8*stdev avg+9*stdev avg+10*stdev];
 97     [frequency NN]= hist(arg0,bins)
 98     figure(1, "visible", "off"); %append plot to pdf,no need to display
 99     bar(NN,frequency,0.3);
          xlabel('avg   avg+2*dev    avg+3*dev   avg+6*dev    avg+8*dev   avg+9*dev  avg+10*dev');


reply via email to

[Prev in Thread] Current Thread [Next in Thread]