python - Difference between plt.close() and plt.clf() -


in python, difference between plt.clf() , plt.close()?

will function same way?

plt.close() close figure window entirely, plt.clf() clear figure - can still paint plot onto it.

it sounds like, needs, should preferring plt.clf(), or better yet keep handle on line objects (they returned in lists plot calls) , use .set_data on in subsequent iterations.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -