Python – How to set the matplotlib figure default size in ipython notebook

jupyter-notebookmatplotlibpython

I use "$ipython notebook –pylab inline" to start the ipython notebook. The display matplotlib figure size is too big for me, and I have to adjust it manually. How to set the default size for the figure displayed in cell?

Best Answer

Worked liked a charm for me:

matplotlib.rcParams['figure.figsize'] = (20, 10)