Note
Go to the end to download the full example code
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()
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()
Total running time of the script: (0 minutes 1.673 seconds)