1 Upvote

Matplotlib Subplot Size

Python
Visualisation & EDA

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()
{{ snippet.title}

By analyseup - Last Updated Jan. 12, 2022, 12:30 a.m.

Did you find this snippet useful?

Sign up to bookmark this in your snippet library

COMMENTS
RELATED SNIPPETS
2
Top Contributors
103
100