[Matplotlib-users] Change axis's scale

2010-04-01 Thread timothee cezard
Hi all, I have several graph to create and the position on the x axis can vary quite a lot. Most of the time I'm quite happy with the default behavior but when my x values are very high matplotlib automatically change the ticks and set a scale on the axis (see screenshot)

Re: [Matplotlib-users] Problems using bar() with left containing an array of float

2010-03-26 Thread timothee cezard
: plt.bar(bins, height, 0.01) http://matplotlib.sourceforge.net/api/axes_api.html#matplotlib.axes.Axes.bar Friedrich 2010/3/25 timothee cezard tcez...@staffmail.ed.ac.uk: 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

[Matplotlib-users] Problems using bar() with left containing an array of float

2010-03-25 Thread timothee cezard
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: