ScottPlot 5.1.59-pr5233

ScottPlot is a free and open-source plotting library for .NET that makes it easy to interactively display large datasets.

The ScottPlot Cookbook demonstrates how to create line plots, bar charts, pie graphs, scatter plots, and more with just a few lines of code.

Quickstart

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

ScottPlot.Plot myPlot = new();
myPlot.Add.Scatter(dataX, dataY);
myPlot.SavePng("quickstart.png", 400, 300);

Windows Forms Quickstart

Install the ScottPlot.WinForms NuGet package, drop a FormsPlot from the toolbox onto your form, then add the following to your start-up sequence:

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

formsPlot1.Plot.Add.Scatter(dataX, dataY);
formsPlot1.Refresh();

More Quickstarts

Interactive Demo

The ScottPlot Demo allows you to run these examples interactively.

ScottPlot Cookbook

The ScottPlot Cookbook demonstrates how to create line plots, bar charts, pie graphs, scatter plots, and more with just a few lines of code.

Showing the top 20 packages that depend on ScottPlot.

Packages Downloads
ScottPlot.Avalonia
User controls for displaying interactive plots in Avalonia applications
4

Version Downloads Last updated
5.1.59-pr5233 5 06/26/2026