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:
2010/3/26 timothee cezard tcez...@staffmail.ed.ac.uk:
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
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: