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

Feature parity with ggtern and others

Open marcharper opened this issue 10 years ago • 6 comments

Adding more features to python-ternary that are present in other libraries such as ggtern is a long term goal for this library.

marcharper avatar Oct 14 '15 06:10 marcharper

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: normal scale zooms to: zoomed in triangle

dagrha avatar Dec 08 '15 22:12 dagrha

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:

codapak_ternaryplot codapak_ternaryplot_centered

dagrha avatar Dec 08 '15 22:12 dagrha

Zooming seems fairly straightforward. Recentering... I am not sure. I will need to look into exactly what is going on.

marcharper avatar Dec 09 '15 03:12 marcharper

@marcharper Any update on the zooming feature?

zimshady avatar Jan 26 '17 11:01 zimshady

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.

marcharper avatar Jan 27 '17 02:01 marcharper

Thanks @marcharper . Will give it a go. A convenience function would be great for some of us... lets say... more programmatically challenged people.

zimshady avatar Jan 27 '17 08:01 zimshady