Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Thanks, but while this tells me how to save a figure and close it it doesn't answer the question—it's a bit like answering "how do I use smart pointers in C++" with "allocate a raw pointer and then call delete when you're done with it". Commented Jun 3, 2016 at 19:13
  • That's fair, just suggesting an alternate solution to "How can I not worry about memory leaks" that still uses the standard plt API. Commented Jun 3, 2016 at 19:47