title: Pandas Plotting with twinx
body: <p>I'm attempting to have a bar plot and line plot on the same figure using Pandas matplotlib API. However, it is not going very well. I am using twinx() which seems to be the generally accepted way of accomplishing this.</p>
  
  <p>Note that this is done in a Jupyter notebook, with the plot being shown inline. Thank you for the assistance!</p>
  
  <pre><code>fig0, ax0 = matplotlib.pyplot.subplots()
  ax1 = ax0.twinx()
  
  trend_df_hours.plot(kind='bar', stacked=True, color=color_list, ax=ax0)
  trend_df_qty.plot(kind='line', secondary_y=True, ax=ax1)
  matplotlib.pyplot.show()
  matplotlib.pyplot.close()
  </code></pre>