marcharper / python-ternary

:small_red_triangle: Ternary plotting library for python with matplotlib
MIT License
726 stars 156 forks source link

Distance between tick labels (numbers) and axis #210

Open Sophia478 opened 4 months ago

Sophia478 commented 4 months ago

Hi there,

Is there a way to adjust the distance between the tick labels (numbers) and the axis? I could not find anything and the things I tried did not work....

bmondal94 commented 4 months ago

You can use offset parameter to tune the distance between tick labels and triangle axes. tax.ticks(axis='lbr', multiple=5, linewidth=0.05, offset=0.05)

You have similar functionality in axis labels as well. tax.right_axis_label("Test label", fontsize=20, offset=0.2)