marcharper / python-ternary

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

Default plot does not save as equilateral triangle #171

Open vmeschke opened 3 years ago

vmeschke commented 3 years ago

Hello there! Thanks for making this lovely library. I've always run in to the issue when saving plots that my ternary plots are never equilateral triangles. I was wondering if anyone else was having this issue. An example is attached below. ternary

maximweb commented 3 years ago

I had the same issue a while back. Quick look in my code revealed: tax.get_axes().set_aspect(1) tax._redraw_labels() at the very end of plotting, right before saving.

Maybe this did the trick?

vmeschke commented 3 years ago

That fixed it for me! Thanks!

marcharper commented 3 years ago

Thanks @maximweb !