matplotlib.artist.Artist.remove#
- Artist.remove()[source]#
Remove the artist from the figure if possible.
The effect will not be visible until the figure is redrawn, e.g.,with
FigureCanvasBase.draw_idle. Callrelimtoupdate the Axes limits if desired.Note:
relimwill not see collections even if thecollection was added to the Axes withautolim = True.Note: there is no support for removing the artist's legend entry.
Examples usingmatplotlib.artist.Artist.remove#
On this page