你可以使用`clf()`清除当前图像,使用`cla()`清除当前轴。 如果你搞不清在幕后维护的状态(特别是当前的图像和轴),不要绝望:这只是一个面向对象的 API 的简单的状态包装器,你可以使用面向对象 API(见[艺术家教程](http://matplotlib.org/users/artists.html#artist-tutorial))。
你可以使用`clf()`清除当前图像,使用`cla()`清除当前轴域。 如果你搞不清在幕后维护的状态(特别是当前的图像和轴域),不要绝望:这只是一个面向对象的 API 的简单的状态包装器,你可以使用面向对象 API(见[艺术家教程](http://matplotlib.org/users/artists.html#artist-tutorial))。