python-ternary icon indicating copy to clipboard operation
python-ternary copied to clipboard

Default plot does not save as equilateral triangle

Open vmeschke opened this issue 3 years ago • 3 comments

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

vmeschke avatar May 09 '21 00:05 vmeschke

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?

maximweb avatar May 10 '21 08:05 maximweb

That fixed it for me! Thanks!

vmeschke avatar May 10 '21 14:05 vmeschke

Thanks @maximweb !

marcharper avatar May 12 '21 02:05 marcharper