Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make inline plots in Jupyter Notebook larger? [duplicate]

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

like image 930
Chris Avatar asked Apr 02 '16 00:04

Chris


People also ask

How do you make an inline plot bigger in a jupyter notebook?

Next, to increase the size of the plot in the jupyter notebook use plt. rcParams[“figure. figsize”] method and set width and height of the plot.

How do you zoom a plot on a jupyter notebook?

Just drag the right bottom corner of the plot..


1 Answers

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

like image 92
tacaswell Avatar answered Sep 19 '22 17:09

tacaswell