title: Plotting from Pivot Table using Pandas
body: <p>Let's say that I have the following pivot table (this is the one created in <a href="http://pandas.pydata.org/pandas-docs/stable/reshaping.html" rel="noreferrer">the documentation</a>):</p>
  
  <pre><code>In [8]: tuples = list(zip(*[['bar', 'bar', 'baz', 'baz',
  ...:                 'foo', 'foo', 'qux', 'qux'],
  ...:                ['one', 'two', 'one', 'two',
  ...:                 'one', 'two', 'one', 'two']]))
  ...: 
  
  In [9]: index = MultiIndex.from_tuples(tuples, names=['first', 'second'])
  
  In [10]: df = DataFrame(randn(8, 2), index=index, columns=['A', 'B'])
  
  In [11]: df2 = df[:4]
  
  In [12]: df2
  Out[12]: 
                       A         B
  first second                    
  bar   one     0.721555 -0.706771
        two    -1.039575  0.271860
  baz   one    -0.424972  0.567020
        two     0.276232 -1.087401
  </code></pre>
  
  <p>How can I use this table to plot both 'bar' and 'baz' on the same plot with axes (second, A) (i.e. I want to create a plot with the points (one, 0.72), (two, -1.039), (one, -0.42), (two, 0.276), where the first two points are plotted in a different color than the latter two).</p>
  
  <p>I tried using</p>
  
  <pre><code>df2[[0]].plot() 
  </code></pre>
  
  <p>but this plots the points sequentially on the x-axis so that they are ordered ((bar,one), .721), ((bar,two), -1.039), etc, rather than having the two 'one' points and the two 'two' points share a vertical axis.</p>