ScottPlot 3.1.1

ScottPlot is a free and open-source interactive plotting library for .NET

There is a newer version of this package available.
See the version list below for details.
Install-Package ScottPlot -Version 3.1.1
dotnet add package ScottPlot --version 3.1.1
<PackageReference Include="ScottPlot" Version="3.1.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ScottPlot --version 3.1.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

ScottPlot is a free and open-source interactive plotting library for .NET which makes it easy to interactively display data in a variety of formats. You can generate line plots, bar charts, scatter plots, etc., with just a few lines of code (see the ScottPlot Cookbook for examples).

In graphical environments plots can be displayed interactively (left-click-drag to pan and right-click-drag to zoom) and in console applications plots can be created and saved as images.

ScottPlot targets multiple frameworks (.NET Framework 4.5 and .NET Core 3.0), has user controls for WinForms and WPF, and is available on NuGet with no dependencies.

Quickstart

Windows Forms Application

  1. Drag/Drop FormsPlot (from the toolbox) onto your form.
  2. Add this code to your startup sequence:
double[] xs = new double[] {1, 2, 3, 4, 5};
double[] ys = new double[] {1, 4, 9, 16, 25};
formsPlot1.plt.PlotScatter(xs, ys);
formsPlot1.Render();

Console Application

double[] xs = new double[] { 1, 2, 3, 4, 5 };
double[] ys = new double[] { 1, 4, 9, 16, 25 };
var plt = new ScottPlot.Plot(600, 400);
plt.PlotScatter(xs, ys);
plt.SaveFig("demo.png");

WPF Application

  1. Drag/Drop WpfPlot (from the toolbox) onto your form.
  2. Add this code to your startup sequence:
<ScottPlot:ScottPlotWPF Name="wpfPlot1" Margin="10"/>
<Button Content="Add Plot" Click="AddPlot"/>
<Button Content="Clear" Click="Clear"/>
double[] xs = new double[] {1, 2, 3, 4, 5};
double[] ys = new double[] {1, 4, 9, 16, 25};
wpfPlot1.plt.PlotScatter(xs, ys);
wpfPlot1.Render();

Links

ScottPlot is a free and open-source interactive plotting library for .NET which makes it easy to interactively display data in a variety of formats. You can generate line plots, bar charts, scatter plots, etc., with just a few lines of code (see the ScottPlot Cookbook for examples).

In graphical environments plots can be displayed interactively (left-click-drag to pan and right-click-drag to zoom) and in console applications plots can be created and saved as images.

ScottPlot targets multiple frameworks (.NET Framework 4.5 and .NET Core 3.0), has user controls for WinForms and WPF, and is available on NuGet with no dependencies.

Quickstart

Windows Forms Application

  1. Drag/Drop FormsPlot (from the toolbox) onto your form.
  2. Add this code to your startup sequence:
double[] xs = new double[] {1, 2, 3, 4, 5};
double[] ys = new double[] {1, 4, 9, 16, 25};
formsPlot1.plt.PlotScatter(xs, ys);
formsPlot1.Render();

Console Application

double[] xs = new double[] { 1, 2, 3, 4, 5 };
double[] ys = new double[] { 1, 4, 9, 16, 25 };
var plt = new ScottPlot.Plot(600, 400);
plt.PlotScatter(xs, ys);
plt.SaveFig("demo.png");

WPF Application

  1. Drag/Drop WpfPlot (from the toolbox) onto your form.
  2. Add this code to your startup sequence:
<ScottPlot:ScottPlotWPF Name="wpfPlot1" Margin="10"/>
<Button Content="Add Plot" Click="AddPlot"/>
<Button Content="Clear" Click="Clear"/>
double[] xs = new double[] {1, 2, 3, 4, 5};
double[] ys = new double[] {1, 4, 9, 16, 25};
wpfPlot1.plt.PlotScatter(xs, ys);
wpfPlot1.Render();

Links

Release Notes

https://github.com/swharden/ScottPlot/releases

Dependencies

This package has no dependencies.

NuGet packages (4)

Showing the top 4 NuGet packages that depend on ScottPlot:

Package Downloads
ScottPlot.WinForms
This package provides a Windows Forms user control to interactively display ScottPlot graphs. This package targets both .NET Framework and .NET Core.
ScottPlot.WPF
This package provides a WPF control to interactively display ScottPlot graphs in WPF applications. This package targets both .NET Framework and .NET Core.
WpfAppNetCore
Package Description
ScottPlot.Avalonia
This package provides an Avalonia control to interactively display ScottPlot graphs in Avalonia applications. This package targets both .NET Framework and .NET Core.

GitHub repositories (3)

Showing the top 3 popular GitHub repositories that depend on ScottPlot:

Repository Stars
swharden/ScottPlot
Interactive Plotting Library for .NET
swharden/Csharp-Data-Visualization
Code examples and notes for displaying data with C#
OndrejNepozitek/Edgar-DotNet
Configurable procedural layout generator

Version History

Version Downloads Last updated
4.0.40 0 9/20/2020
4.0.39 1,805 8/9/2020
4.0.38 1,221 7/7/2020
4.0.37 494 6/22/2020
4.0.36 143 6/22/2020
4.0.35 741 6/9/2020
4.0.34 943 5/18/2020
4.0.33 103 5/18/2020
4.0.32 140 5/17/2020
4.0.31 487 5/6/2020
4.0.30 225 5/4/2020
4.0.29 3,172 4/11/2020
4.0.28 343 4/7/2020
4.0.27 653 4/5/2020
4.0.26 258 4/5/2020
4.0.25 551 3/29/2020
4.0.24 231 3/27/2020
4.0.23 286 3/23/2020
4.0.22 496 3/17/2020
4.0.21 1,265 3/15/2020
4.0.19 997 2/29/2020
4.0.18 1,274 2/7/2020
4.0.17 386 2/6/2020
4.0.16 298 2/2/2020
4.0.15 220 1/28/2020
4.0.14 320 1/24/2020
4.0.13 1,038 1/21/2020
4.0.12 138 1/21/2020
4.0.11 216 1/19/2020
4.0.10 186 1/18/2020
4.0.9 1,201 12/4/2019
4.0.8 110 12/3/2019
4.0.7 199 12/1/2019
4.0.5 180 11/27/2019
4.0.4 188 11/24/2019
4.0.3 132 11/23/2019
4.0.2 301 11/9/2019
4.0.1 525 11/3/2019
3.1.6 561 10/21/2019
3.1.5 315 10/7/2019
3.1.4 256 9/22/2019
3.1.3 498 8/25/2019
3.1.1 421 8/20/2019
3.0.9 607 8/12/2019
3.0.8 224 8/4/2019
3.0.7 195 7/27/2019
3.0.6 282 6/30/2019
3.0.5 178 6/24/2019
3.0.4 173 6/24/2019
3.0.3 954 5/29/2019
3.0.2 197 5/28/2019
3.0.1 232 5/28/2019
Show less