How do I change the figure size with subplots?


I came across this example in the Matplotlib website. I was wondering if it was possible to increase the figure size.

I tried with


but it does nothing.

Answer rating: 822

If you already have the figure object use:


But if you use the .subplots() command (as in the examples you"re showing) to create a new figure you can also use:

f, axs = plt.subplots(2,2,figsize=(15,15))

Get Solution for free from DataCamp guru