although my test data points are all inside the (0,0,1),(0,1,0),(1,0,0) triangle, my ternary plot unexpectedly plots some of them outside of the triangle.







        \addplot3 table[x index = 1, y index = 2, z index= 3]{#1};







foo ololo   alala   elele
foo1    0.5 0.3 0.7
foo2    0.2 0.5 0.2
foo3    1   1   1
  • 2
    The components of each data point have to add up to the same value for all points, and these values have to work with the axis ranges. By default, the axis ranges are set to 0:1. A point with the components (1,1,1) doesn't work in this configuration. What result are you expecting?
    – Jake
    Commented Jul 3, 2013 at 12:43
  • ... and neither do the others...
    – Count Zero
    Commented Jul 3, 2013 at 12:45
  • nvm, you are right about that :-/ It's just my test data and the assumption that they should be inside that are wrong.
    – kutschkem
    Commented Jul 3, 2013 at 12:55
  • @kutschkem: So I guess we can close this question then?
    – Jake
    Commented Jul 3, 2013 at 13:50
  • @Jake i do have another question concerning points outside of the plot, but i think we can close this one and i will open another one for the new question
    – kutschkem
    Commented Jul 3, 2013 at 13:52

1 Answer 1


The problem here is that the test points are not in the (0,0,1),(0,1,0),(1,0,0) triangle. All coordinates need to sum to 1 in order for the point to be inside the plot.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .