title: Why are the Line2D objects that are supposed to be contained by a matplotlib Axis showing up as empty?
body: <p>The figure plots just fine, but I can't access the Line2D objects.</p>
  
  <p>Example code below:</p>
  
  <pre><code>import pandas as pd
  import numpy as np
  from matplotlib import pyplot
  
  df=pd.DataFrame({"col1":np.random.rand(10), "col2":np.random.rand(10)})
  
  fig=pyplot.figure()
  ax=fig.add_subplot(1,1,1)
  
  ax=df.plot(kind="scatter", x="col1", y="col2", ax=ax)
  ax.lines # the result is an empty list.
  fig.show()
  </code></pre>
  
  <p>Also <code>ax.get_lines()</code> gives the same result, i.e. no lines. The same thing happens when I plot directly with <code>ax.scatter(...)</code>.</p>