Matplotlib and seaborn 3 · Basics

Set the figure size

Create a figure with a size in inches and a resolution.

fig, ax = plt.subplots(figsize=(8, 4), dpi=120)

Official Matplotlib and seaborn 3 documentation

More basics commands

All basics commands · Matplotlib and seaborn 3 cheatsheet

Was this page helpful?