I am working with the python ternary package. To improve the intuitive understanding of the plot, I want to rotate the tick labels on the axis to indicate in which direction the gridlines of this axis point, like in the plot below.
Python-ternary produces this result with the following code
from matplotlib import pyplot as plt
import ternary
figure, ax = plt.subplots(figsize=(6, 6))
tax = ternary.TernaryAxesSubplot(ax=ax, scale=100)
# draw Boundary and Gridlines
tax.boundary(linewidth=2.0)
tax.gridlines(color="black", multiple=10)
# ticks settings
tax.ticks(
axis='lbr',
linewidth=1,
multiple=20,
offset=0.02,
fontsize=12
)
# remove mpl axes
tax.get_axes().axis('off')
tax.clear_matplotlib_ticks()
ternary.plt.show()
what I have tried so far is
- tax.ticks(axis='b',rotation=45)
- tax.ticks(axis='b',labelrotation=45)
- tax.ticks(axis='b').set_rotation(45)
without success. any help is appreciated!