Matplotlib and Ipython-notebook: Displaying exactly the figure that will be saved

As noted by @andrew, the ipython magics are enforcing bbox_inches="tight" by default. This can be overridden using other magics as explained in the ipython documentation:

%matplotlib inline
%config InlineBackend.print_figure_kwargs = {'bbox_inches':None}

produces an inline image identical to that produced by savefig.

Leave a Comment