alchemyst / ternplot

Plot ternary diagrams in Matlab
GNU General Public License v3.0
36 stars 15 forks source link

Create inverse function for terncoords #8

Open alchemyst opened 8 years ago

alchemyst commented 8 years ago

Terncoords converts ternary fractions to rectangular coordinates, but we need to be able to go back from those coordinates to the fractions.

sha17hab commented 8 years ago

Hello Carl, sorry I am a little bit lost in your latest comment. Did you mean that we should produce an anti-Terncoords function to get the rectangular coordinate and turn them into three fractional value where their sum should be equal to a unit?

alchemyst commented 8 years ago

That's exactly what I mean. terncoords takes the fractional values and gives x, y coordinates that can be plotted. There isn't a quick way right now to take the x, y coordinates back to the fractions.

sha17hab commented 8 years ago

Sure, but is it practical since one should have the original fractional variables to be able to use Terncoords converts. What would be the use of this?

alchemyst commented 8 years ago

For instance to enable ginput to be used, or to find the fractions for particular contours.

This message may contain unintentional errors, as it was typed on a phone

On 30 Jun 2016, at 18:01, Shahab Afshari notifications@github.com wrote:

Sure, but is it practical since one should have the original fractional variables to be able to use Terncoords converts. What would be the use of this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.