Ternary plots

I am looking to replicate the figure below (from Wikipedia on the Dirichlet distribution). Is there any way to do this currently in Julia (the vertical color scale is not that important)?

Dirichlet

1 Like

This would also be useful for phase diagrams of ternary compounds.

I think plotly can do this, but I only see scatter plots in the example.

Update:
I also found the contour version:

4 Likes

See work in progress on TernaryPlots.jl package here.


5 Likes

Thanks! But am I missing something or there is no Julia page for Ternary plots/contours there? Sorry, I have never come across Plotly.

I just posted the documentation of the plotly framework which can be used from different languages.
The julia binding would be the PlotlyJS.jl package.
Here is a page about ternaries from the julia package:

http://juliaplots.org/PlotlyJS.jl/stable/examples/ternary

2 Likes