alchemyst / ternplot

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

Vertex labelling/plot order incorrect #13

Open akshaymehra opened 5 years ago

akshaymehra commented 5 years ago

Ternplot appears to plot in this order:

   c
  / \
 /   \
a --- b

But the documentation shows:

   b
  / \
 /   \
c --- a

To demonstrate, here's a simple plot with A = 10%, B = 60%, and C = 30%:

ternplot(10, 60, 30, 's', 'majors', 10);

If we label it using vertexlabel, we get incorrect labeling:

vertexlabel( 'A', 'B', 'C');

incorrect where C is now 10%, B is 30%, and A is 60%. Labeling in this order, on the other hand,:

vertexlabel( 'B', 'C', 'A');

correct gives us the correct plot.