Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just keep in mind that when you do this, most plots will by default reuse the existing frame without clearing it. So you need to manually call plt.figure() more often (which in my opinion is more logical than plt.show).

There’s also a change in semantics regarding whether the script “hangs” until the user closes the plot window, if I recall correctly.



Or you can call plt.clf() to clear the frame.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: