How to make your Matplotlib plot nicer in 15 seconds

Deutsch English

Use plt.style.ggplot():

matplotlib_nicer.py
from matplotlib import pyplot as plt
plt.style.use("ggplot")

Before:

Matplotlib plot with default styling before applying ggplot styleAfter:Matplotlib plot with ggplot style applied


Check out similar posts by category: Python