Snippet
1 Upvote

Matplotlib Subplot Size

Python - Visualisation & EDA

Matplotlib - ax - subplot - fig

In the below example the total size of our plot will have a width of 15 inches and a height of 7 inches. Within the plot there will be two subplots displayed across one row and two columns.
#Template
fig, ax = plt.subplots(rows, columns,figsize=(width, height)) 
plt.show()

#Example
fig, ax = plt.subplots(1,2,figsize=(15,7)) 
plt.show()
Matplotlib Subplot Size

By analyseup - Last Updated Sept. 17, 2021, 2:02 p.m.

Comments
Related Snippets
Snippet
Upvotes
Creator