python-ternary
python-ternary copied to clipboard
Feature parity with ggtern and others
Adding more features to python-ternary that are present in other libraries such as ggtern is a long term goal for this library.
Sounds like a great goal.
I appreciate a lot that python-ternary is able to rescale the axes. It would indeed be neat to have the ggtern feature that allows "zooming in" or "focusing". For example:
zooms to:

Another interesting ternary plot feature that I came across in CoDaPak is the ability to recenter data which also modifies the scales and grid-spacing on the fly. This allow for the comparison of variables that are on very different scales (for example, concentration of a rare element vs. that of common elements). Here's an example of what that "centering" looks like in CoDaPak:

Zooming seems fairly straightforward. Recentering... I am not sure. I will need to look into exactly what is going on.
@marcharper Any update on the zooming feature?
I haven't implementing anything. I think you'd just have to:
- subset the plotting data
- rescale the axes
- change the axis labels
It's not necessary to implement this in the library itself, though it would be nice to have a convenience function to do so.
Thanks @marcharper . Will give it a go. A convenience function would be great for some of us... lets say... more programmatically challenged people.