Triangular Axis Titles
Triangular axis edges have a helper method to easily add a title and color all the edge components similarly.
ScottPlot.Plot myPlot = new();
var ta = myPlot.Add.TriangularAxis();
// Give each axis a title and color
ta.Bottom.Title("Methane", Colors.Red);
ta.Left.Title("Nitrogen", Colors.Green);
ta.Right.Title("Oxygen", Colors.Blue);
// Add sample data
Coordinates[] points = [
ta.GetCoordinates(0.50, 0.40),
ta.GetCoordinates(0.60, 0.40),
ta.GetCoordinates(0.65, 0.50),
];
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
