[Matplotlib-users] stacked bar graphs not appearing correctly

2009-09-27 Thread per freem
hi all, i am trying to make a simple stacked bar graphs (just two layers) and am getting some strange results. i have the following code: import numpy as np import matplotlib.pyplot as plt ind = np.arange(3) width = 0.35 plt.bar(ind, [5128307, 4305252, 4817425], width, align='center', color='r')

Re: [Matplotlib-users] stacked bar graphs not appearing correctly

2009-09-27 Thread Jae-Joon Lee
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.bar The second argument is the heights of the bars, not the top coordinate. -JJ On Sun, Sep 27, 2009 at 11:29 AM, per freem perfr...@gmail.com wrote: hi all, i am trying to make a simple stacked bar graphs (just two