dufte as a stand-alone module has been deprecated and merged into mplx.
This package creates clean and beautiful plots that work on light and dark backgrounds. Inspired by the work of Edward Tufte.
To use, install with
pip install dufte
and simply select the dufte
style:
import dufte
import matplotlib.pyplot as plt
# global setting:
plt.style.use(dufte.style)
# with a context manager:
with plt.style.context(dufte.style_bar):
# ...
pass
Check out dufte.legend()
, dufte.ylabel()
, and dufte.show_bar_values()
for more
duftiness.
See here for how to create the below plots.
matplotlib | dufte with dufte.legend() |
matplotlib | dufte | dufte with dufte.show_bar_values() |
Other styles
- John Garrett, Science Plots
- Dominik Haitz, Cyberpunk style
- Dominik Haitz, Matplotlib stylesheets
- Carlos da Costa, The Grand Budapest Hotel
- Danny Antaki, vaporwave aesthetics
- QuantumBlack Labs, QuantumBlack
Projects using dufte:
The position
where