You can benefit the seaborn style in your graphs by calling the set_theme() function of seaborn library at the beginning of your code:

# libraries
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns

# set seaborn style
# Data
y=[ [1,4,6,8,9], [2,2,7,10,12], [2,8,5,10,6] ]
# Plot
plt.stackplot(x,y, labels=['A','B','C'])
plt.legend(loc='upper left')


Contact & Edit

👋 This document is a work by Yan Holtz. You can contribute on github, send me a feedback on twitter or subscribe to the newsletter to know when new examples are published! 🔥

This page is just a jupyter notebook, you can edit it here. Please help me making this website better 🙏!