%pylab --no-import-all inline %config InlineBackend.figure_format = 'svg' ax = plt.subplot(111) ax.plot([1,2,3]) ax.axvline(x=0.5, ls='--') ax = plt.subplot(111) ax.plot([1,2,3]) ax.axvline(x=0.5, ls='--') %config InlineBackend.figure_format = 'png' ax = plt.subplot(111) ax.plot([1,2,3]) ax.axvline(x=0.5, ls='--') %config InlineBackend.figure_format = 'svg' ax = plt.subplot(111) ax.plot([1,2,3]) ax.axvline(x=0.5, ls='--')