Tutorials#
Step-by-step examples of ternary_diagram.
The notebooks and their data live in the
example folder.
For explanations organized by goal, see the User guide.
Quick start: the minimal example of the README, with a colored scatter plot and a line.
Scatter plot colored by values: compositions read from a CSV file, colored by a measured value.
Scatter plot with annotations: a composition computed from chemical formulas with
element_recognition, labeled with its formula.Scatter plot and tie lines: points in a single color, then two groups of points and a tie line with a legend.
Contour map: filled and line contours of a value over the compositions.
Multiple diagrams in one figure: two diagrams side by side with
layout="constrained".