To make this convenient for interactive use matplotlib now registers a function either with IPython's 'post_execute' event or with the displayhook in the standard python REPL to automatically call plt ...
For a wide range of usage examples see gallery of examples ...