Code for making triplots