How to change the figure size of a seaborn axes or figure level plot with Python?

Sometimes, we want to change the figure size of a seaborn axes or figure level plot with Python.

In this article, we’ll look at how to change the figure size of a seaborn axes or figure level plot with Python.

How to change the figure size of a seaborn axes or figure level plot with Python?

To change the figure size of a seaborn axes or figure level plot with Python, we call the set method to set the 'figure.figsize' option.

For instance, we write

import seaborn as sns

sns.set(rc={'figure.figsize':(11.7, 8.27)})

to call set with the rc argument set to a dict with the 'figure.figsize' option to the width and height of the figure in a tuple.

Conclusion

To change the figure size of a seaborn axes or figure level plot with Python, we call the set method to set the 'figure.figsize' option.