Error when attempting to retrieve a matplotlib.lines.Line2D object property using getp
<p>I have a list of handles to points that have been plotted using matplotlib.pyplot like so:</p>

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

for i in range(0,len(z)):
    zh[i] = plt.plot(z[i].real, z[i].imag, 'go', ms=10)
    plt.setp(zh[i], markersize=10.0, markeredgewidth=1.0,markeredgecolor='k', markerfacecolor='g')
</code></pre>

<p>I'd also like to extract the XData and YData from the handles somewhere else in the code (z[i].real and z[i].imag would have changed by then). However, when I do this:</p>

<pre><code>for i in range(1,len(zh)):
    print zh[i]
    zx = get(zh[i],'XData')
    zy = get(zh[i],'YData')
</code></pre>

<p>I get this (first line is a result of the "print zh[i]" above):</p>

<pre><code>[&lt;matplotlib.lines.Line2D object at 0x048FDA70&gt;]

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Python27\lib\lib-tk\Tkinter.py", line 1410, in __call__
  return self.func(*args)
...
File "C:\Python27\lib\site-packages\matplotlib\artist.py", line 1130, in getp
  func = getattr(obj, 'get_' + property)
AttributeError: 'list' object has no attribute 'get_XData'
</code></pre>

<h3>EDIT</h3>

<p>I simplified the problem down to this:</p>

<pre><code>new_handler = plt.plot(0.5, 0, 'go', ms=10)
plt.setp(new_handler, markersize=10.0, markeredgewidth=1.0,markeredgecolor='k',markerfacecolor='g',picker=5)
print plt.getp(new_handler,'xdata')
</code></pre>

<p>Still same error:</p>

<pre><code>AttributeError: 'list' object has no attribute 'get_xdata'
</code></pre>
