/ScottPlot

Interactive Plotting Library for .NET

Primary LanguageC#MIT LicenseMIT

ScottPlot

ScottPlot 4 CI Discord

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.

Windows Forms Quickstart

Windows Forms: Use NuGet to install ScottPlot.WinForms, drag/drop a FormsPlot onto your form, then add the following to your start-up sequence:

double[] xs = new double[] {1, 2, 3, 4, 5};
double[] ys = new double[] {1, 4, 9, 16, 25};
formsPlot1.Plot.AddScatter(xs, ys);
formsPlot1.Refresh();

More Quickstart Guides

Supported Platforms

.NET Versions

  • .NET Standard 2.0
  • .NET Framework 4.6.2 and newer
  • .NET (Core) 6 and newer (compatibility notes)

Operating Systems

ScottPlot 4 is supported anywhere System.Drawing.Common is.

ScottPlot 5 (in development) uses SkiaSharp for improved cross-platform support for .NET 7 and later.

Plot in the Cloud with ScottPlot

These images are generated by ScottPlot in the cloud. Every hour an Azure Function hits the GitHub API to get an updated list of stargazers, then uses ScottPlot to create a figure from this data and saves it to web-accessible blob storage. Since this automatically-generated plot is just a static image accessible by a URL, it can be displayed in places where JavaScript is not permitted (like in this readme file) to display dynamic data.

Try it out! Give us a star and come back in an hour and your name will appear here

Major Versions

✔️ ScottPlot 4 is stable and recommended for all users

⚠️ ScottPlot 5 is experimental and not recommended for use

See the roadmap and changelog for more information

ScottPlot Discord Channel

  • In July, 2022 maintainers started using the ScottPlot Discord Channel to discuss progress developing the next major version of ScottPlot. Contributors and users are welcome to check it out!

About ScottPlot

  • The ScottPlot Changelog details the most recent features and bug fixes.

  • ScottPlot was created by Scott W Harden and enhanced by many contributions from the open-source community.

  • ScottPlot is provided under the the permissive MIT license and is free to modify and use for any purpose.

  • If you enjoy ScottPlot give it a star!