Arbitrary triangle#

You can make a ternary plot on an triangle with arbitrary shape.

02.arbitrary triangle
import matplotlib.pyplot as plt
from mpltern.datasets import get_spiral


corners = ((0.0, 0.0), (0.5, 0.5), (-0.5, 1.0))
ax = plt.subplot(projection='ternary', corners=corners)

ax.plot(*get_spiral())

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

ax.grid()

plt.show()

Gallery generated by Sphinx-Gallery