ScottPlot is a free and open-source graphing library for .NET which makes it easy to display data in a variety of formats (line plots, bar charts, scatter plots, etc.) with just a few lines of code (see the ScottPlot Cookbook for examples). User controls are available for WinForms and WPF to allow interactive display of data.
double[] dataX = new double[] {1, 2, 3, 4, 5};
double[] dataY = new double[] {1, 4, 9, 16, 25};
var plt = new ScottPlot.Plot(600, 400);
plt.PlotScatter(dataX, dataY);
plt.SaveFig("quickstart.png");
More quickstarts are in /dev/quickstart
Review the ScottPlot Cookbook to see what ScottPlot can do and learn how to use most of the ScottPlot features. Every in figure in the cookbook is displayed next to the code that was used to create it.
The ScottPlot Demo is a click-to-run EXE for Windows designed to make it easy to assess the capabilities of ScottPlot. Identical demos are provided using Windows Forms and WPF to interactively display all ScottPlot Cookbook figures and also demonstrate advanced uses such as mouse tracking, displaying live data, draggable plot components.
Every ScottPlot release is available on NuGet. However, users interested in testing features developed since the last release can do so by downloading the latest ScottPlot source code. ScottPlot is developed using the latest non-preview version of Visual Studio Community (free).
⚠️ Inter-release source code may contain partially-implemented or experimental functionality. Installation of ScottPlot releases via NuGet or source code obtained from the releases page is recommended for most applications.
To use the latest ScottPlot source code in your application, download this repository and add references in your project to:
/src/ScottPlot/ScottPlot.csproj
If you are creating a graphical application, also reference one of:
/src/ScottPlot.WPF/ScottPlot.WPF.csproj
/src/ScottPlot.WinForms/ScottPlot.WinForms.csproj
ScottPlot was created by Scott Harden (Harden Technologies, LLC) with many contributions from the user community. Additional resources (such as version-specific documentation, demos, and cookbooks) can be found at the ScottPlot website http://swharden.com/scottplot/