ScottPlot.NET
GitHub Repo stars

Scatter Plot

A scatter plot can be used to display X/Y data points.

ScottPlot.Plot myPlot = new();

// create sample data
double[] dataX = { 1, 2, 3, 4, 5 };
double[] dataY = { 1, 4, 9, 16, 25 };

// add a scatter plot to the plot
myPlot.Add.Scatter(dataX, dataY);

myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Quickstart category