How to make inline plots in Jupyter Notebook larger?

Chris picture Chris · Apr 2, 2016 · Viewed 280.7k times · Source

I have made my plots inline on my Ipython Notebook with "%matplotlib inline."

Now, the plot appears. However, it is very small. Is there a way to make it appear larger using either notebook settings or plot settings?

enter image description here

Answer

tacaswell picture tacaswell · Apr 2, 2016

The default figure size (in inches) is controlled by

matplotlib.rcParams['figure.figsize'] = [width, height]

For example:

import matplotlib.pyplot as plt
plt.rcParams['figure.figsize'] = [10, 5]

creates a figure with 10 (width) x 5 (height) inches