I am coding in jupyter notebook (through Anaconda), I want to do two things:
Add shapes as polygons inside the ternary plot. I found this article, but unsure how to apply to a chart with three axes: https://plotly.com/python/shapes/
I want to create sub fields (as polygons) within the ternary plot, similar to the image here:
Thank you @empet!! If I make lines as you have demonstrated - how can I also plot data as symbols as in the first images I posted (data = dataset QtFL as blue crosses). Is there a way to save the lines as a template or background and then plot data from my csv file on top? Thanks sincerely!!
Hence fill='toself' defines a ternary shape from a closed polygon. The shape is generated even if you do not repeat the first coordinates at the end of coordinate lists, but in this case the surrounding boundary line is incomplete. Just check it!
with a,b,c being columns from the CSV file. This does not work. I get an error:
ValueError: The first argument to the plotly.graph_objs.Scatterternary
constructor must be a dict or
an instance of :class:plotly.graph_objs.Scatterternary
My ternary is getting to where I want it to be! A few things I couldnāt figure out from the help menus you recommended.
Is there a way to have a different symbol for each data point (square, triangle, cross for example)? I donāt mind if the symbol is randomly chosen. My .csv has a column called āsample_idā so perhaps I can write a code that assigns a symbol based on that column?
Is there a way to change the axes from 0-1.0 to 0-100 ?
Can text be added inside the ternary - to label the fields within the lines Iāve plotted. If this is huge pain in the ass, I can just do it in Illustrator after exporting the figure. Just curious.