Stack Bar Grapth with plot / pandas
<p>I am not being able to generate a stacked graph with the error below:</p>

<pre><code>TypeError: There is no Line2D property "stacked"
</code></pre>

<p>My csv has the format:</p>

<pre><code>feb-17,1,2,3
apr-17,2,4,3
may-18,3,5,3
oct-20,4,1,1
dec-21,5,1,1
</code></pre>

<p>I would expect to see something like:</p>

<p><a href="http://i.stack.imgur.com/KiqgL.png" rel="nofollow"><img src="http://i.stack.imgur.com/KiqgL.png" alt="enter image description here"></a></p>

<p>My code is:</p>

<pre><code>import pandas
import matplotlib.pyplot as plt


df = pandas.read_csv(datacsv.csv, delimiter=',', 
                 index_col=0, 
                 parse_dates=[0], dayfirst=True, 
                 names=['Date','Black','Red', 'Yellow'])

df.plot(Stacked=True, marker='.',markersize=8, title ="My graph", fontsize = 10, color=['b','g','c'], figsize=(15, 15))

imagepathprotocol = "image.png"

plt.savefig(imagepathprotocol)
</code></pre>

<p>Any idea what can be done? Thanks a lot.</p>

<p>try the following code </p>

<pre><code>df.plot(stacked=True,kind ='bar',title ="My graph",fontsize =10,color=['b','g','c'], figsize=(15, 15))
</code></pre>

<p>you need to point out the bar kind and delete the marker/markersize</p>

python plot