Matplotlib and seaborn 3 · Layout and styling
Draw several charts
Create a grid of axes and plot on each one.
fig, axes = plt.subplots(1, 2, figsize=(10, 4))
axes[0].plot(x, np.sin(x))
axes[1].plot(x, np.cos(x))
fig.tight_layout()
Official Matplotlib and seaborn 3 documentation
More layout and styling commands
All layout and styling commands · Matplotlib and seaborn 3 cheatsheet