ScottPlot.NET
GitHub Repo stars

Scatter Plot Quickstart

Scatter plots can be created from two arrays containing X and Y values.

This code sample is specific to ScottPlot 5 (details)
ScottPlot.Plot myPlot = new();

double[] xs = { 1, 2, 3, 4, 5 };
double[] ys = { 1, 4, 9, 16, 25 };

myPlot.Add.Scatter(xs, ys);

myPlot.SavePng("demo.png", 400, 300);

Edit on GitHub