title: Using Streamlit and matplotlib to display a pandas dataframe bar plot
body: <p>At the moment I have:</p>
  <pre><code>fig, ax = plt.subplots()
  ax = df.plot.barh(stacked=True)
  st.pyplot(fig)
  </code></pre>
  <p>The dataframe for reference if necessary looks like:</p>
  <pre><code>       A     B     C     D      E
  Cat1  5.3   NaN   NaN   NaN    NaN
  Cat2  NaN   NaN   12.1  NaN    NaN
  Cat3  NaN   NaN   NaN   3.4    4.5
  Cat4  NaN   2.8   NaN   NaN    NaN                                       
  </code></pre>
  <p>where if I get rid of the <code>fig</code> in <code>st.pyplot(fig)</code>, forcing the function to render the global figure - it produces a nice stacked bar plot, but with the deprecation warning.</p>
  <p>So I know it's not a problem with matplotlib producing the plot from my dataframe, but actually with streamlit displaying the plot.</p>
  <p>Basically, what matplotlib syntax do I need to get streamlit to produce this horizontal stacked bar plot?</p>
  <p>Thanks in advance</p>