How to change plot size in Jupyter Notebook

How to change plot size in Jupyter Notebook

I keep forgetting that and I must google it every time I want to change the size of charts in Jupyter Notebook (which really is, every time).

So this is how you do it:

1
2
3
import matplotlib.pyplot as plt

plt.rcParams["figure.figsize"] = (20,10)

Hopefully, now I am going to remember or just open my own blog post instead of googling it ;)


Remember to share on social media!
If you like this text, please share it on Facebook/Twitter/LinkedIn/Reddit or other social media.

If you watch programming live streams, check out my YouTube channel.
You can also follow me on Twitter: @mikulskibartosz

For business inquiries, send me a message on LinkedIn or Twitter.


Bartosz Mikulski
Bartosz Mikulski * data scientist / software engineer * conference speaker * organizer of School of A.I. meetups in Poznań * co-founder of Software Craftsmanship Poznan & Poznan Scala User Group