ScottPlot.NET
GitHub Repo stars

Customizing Plottables

Functions that add things to plots return the plottables they create. Interact with the properties of plottables to customize their styling and behavior.

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

double[] dataX = { 1, 2, 3, 4, 5 };
double[] dataY = { 1, 4, 9, 16, 25 };
var myScatter = myPlot.Add.Scatter(dataX, dataY);
myScatter.Color = Colors.Green.WithOpacity(.2);
myScatter.LineWidth = 5;
myScatter.MarkerSize = 15;

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

Edit on GitHub