2010/3/26 timothee cezard :
> does it make sense to use something like
> plt.bar(bins, nb_per_bin, width=(max(bins)-min(bins)) / (1.5*len(bins)))
I think that should work, although you should use (max(bins) -
min(bins) / 1.5 / (len(bins) - 1), but I would suggest:
bounds = {some N + 1 array}
cent
Thanks Friedrich,
I though the width was calculated on the fly.
does it make sense to use something like
plt.bar(bins, nb_per_bin, width=(max(bins)-min(bins)) / (1.5*len(bins)))
If I want something more generic
Tim
Friedrich Romstedt wrote:
> You must give a proper :param width: argument:
>
>
You must give a proper :param width: argument:
plt.bar(bins, height, 0.01)
http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.bar
Friedrich
2010/3/25 timothee cezard :
> Hi all,
> I'm trying to plot a distribution using bar() but when I'm setting the
> left variable to
Hi all,
I'm trying to plot a distribution using bar() but when I'm setting the
left variable to as a sequence of float some of the bar look weird.
When I replace this sequence by a sequence of int it works fines
Does anybody know why this happens and how I can fix it?
Here is the code I'm using: