Triangular Axis Quickstart
Create a triangular axis and add it to the plot to display data on a triangular grid, and interact with it to convert triangular units into Cartesian coordinates that can be used for placing any plot type on top.
ScottPlot.Plot myPlot = new();
// Add a triangular axis to the plot
var ta = myPlot.Add.TriangularAxis();
// Get points from various locations in triangular space
Coordinates[] points = [
ta.GetCoordinates(0.50, 0.40),
ta.GetCoordinates(0.60, 0.40),
ta.GetCoordinates(0.65, 0.50),
];
// Any plot type may be added on top of the triangular axis
myPlot.Add.Markers(points, MarkerShape.FilledCircle, 10, Colors.Red);
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Triangular Axis category
