ternplot icon indicating copy to clipboard operation
ternplot copied to clipboard

Vertex labelling/plot order incorrect

Open akshaymehra opened this issue 6 years ago • 0 comments

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.

akshaymehra avatar May 12 '19 21:05 akshaymehra