You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In [7]: c=ax.stem([1,2],[2,1])
In [8]: c.remove()
---------------------------------------------------------------------------TypeErrorTraceback (mostrecentcalllast)
<ipython-input-8-dbc7beefa92d>in<module>()
---->1c.remove()
python2.7/site-packages/matplotlib/container.pycinremove(self)
33defremove(self):
34forcinself:
--->35c.remove()
3637ifself._remove_method:
TypeError: remove() takesexactlyoneargument (0given)
The markers get removed from the plot, however the lines stay. That's because ax.plot returns a listof <matplotlib.lines.Line2D>, and while list has a remove method, it's not what is intended.
In [9]: matplotlib.__version__Out[9]: '1.4.3'
The text was updated successfully, but these errors were encountered:
The markers get removed from the plot, however the lines stay. That's because
ax.plot
returns alist
of<matplotlib.lines.Line2D>
, and whilelist
has a remove method, it's not what is intended.The text was updated successfully, but these errors were encountered: