matplotlib.artist.Artist.remove# Artist.remove()[源代码][源代码]# 如果可能,从图中移除艺术家。 效果在图形重新绘制之前不会显示,例如使用 FigureCanvasBase.draw_idle。如果需要,调用 relim 来更新 Axes 的限制。 注意:relim 即使集合是通过 autolim = True 添加到 Axes 中的,也不会看到集合。 注意:不支持移除艺术家的图例条目。 使用 matplotlib.artist.Artist.remove 的示例# 使用 subplots 和 GridSpec 组合两个子图 Combine two subplots using subplots and GridSpec 图子图 Figure subfigures 艺术家教程 Artist tutorial