Style sheets#

You can use style sheets in the same way as Matplotlib. This applies also for the style sheets of third-party packages like seaborn.

import matplotlib.pyplot as plt
from mpltern.datasets import get_spiral
plt.style.use("ggplot")

ax = plt.subplot(projection="ternary")

ax.plot(*get_spiral())

ax.set_tlabel("Top")
ax.set_llabel("Left")
ax.set_rlabel("Right")

plt.show()
01.style sheets
plt.style.use("dark_background")

ax = plt.subplot(projection="ternary")

ax.plot(*get_spiral())

ax.set_tlabel("Top")
ax.set_llabel("Left")
ax.set_rlabel("Right")

plt.show()
01.style sheets

Total running time of the script: (0 minutes 1.522 seconds)

Gallery generated by Sphinx-Gallery