matplotlib.artist.Artist.remove # 艺术家。删除( ) [来源] # 如果可能,将艺术家从图中移除。 在重新绘制图形之前,效果将不可见,例如,使用FigureCanvasBase.draw_idle。如果需要,调用relim以更新轴限制。 注意:relim即使集合被添加到带有autolim = True 的轴,也不会看到集合。 注意:不支持删除艺术家的图例条目。 使用#的示例matplotlib.artist.Artist.remove 使用 subplots 和 GridSpec 组合两个子图 使用 subplots 和 GridSpec 组合两个子图 图子图 图子图