I’ve just started using python-ternary, it works great so far. I’m having an issue trying to plot a shaded area/polygon on the ternary axes. I have some data that I don’t want to plot as scatter points, but would rather plot as a shaded area/polygon/any shape. So sort of a rough shape/shadow which encompasses where the scatter points would plot if I did it as scatter
The lines I’ve got to do this so far are
ax = tax.get_axes() ax.fill(SEM_Data, alpha = 0.2, color = 'r')
and I get the plot shown (SEM_Data is a text file with 3 coordinates, as you’d normally have when plotting scatter in ternary). However ideally I’d like something more like the other plot shown, where there aren’t specific data points but rather an ellipse around these points (or a shaded area etc, something like that anyway). Is there anyway to do this? I also note with the way I tried, it’s tried to plot the polygon on the ‘original’ x and y axes rather than on the triangle. Many thanks!
plot with ellipse
attempted polygon
nt2299 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.