ScottPlot 3.1.4

There is a newer version of this package available.
See the version list below for details.
Install-Package ScottPlot -Version 3.1.4
dotnet add package ScottPlot --version 3.1.4
<PackageReference Include="ScottPlot" Version="3.1.4" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ScottPlot --version 3.1.4
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ScottPlot, 3.1.4"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ScottPlot as a Cake Addin
#addin nuget:?package=ScottPlot&version=3.1.4

// Install ScottPlot as a Cake Tool
#tool nuget:?package=ScottPlot&version=3.1.4
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 create interactive 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

This package has no dependencies.

NuGet packages (8)

Showing the top 5 NuGet packages that depend on ScottPlot:

Package Downloads
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.

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.Avalonia

This package provides an Avalonia control to interactively display ScottPlot graphs in Avalonia applications. This package targets both .NET Framework and .NET Core.

ProteoformExplorer

Proteoform Dashboard for WPF Applications

WpfAppNetCore

Package Description

GitHub repositories (5)

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

Repository Stars
swharden/Csharp-Data-Visualization
Code examples and notes for displaying data with C#
asc-community/AngouriMath
Open-source cross-platform symbolic algebra library for C# and F#. One of the most powerful in .NET. Can be used for both production and research purposes.
OndrejNepozitek/Edgar-DotNet
Configurable procedural layout generator
swharden/Spectrogram
.NET library for creating spectrograms
nicolasdeory/firelight
A modular game integration for Razer Chroma and other RGB LED devices for League of Legends, Rocket League, Fortnite and many more.
Version Downloads Last updated
4.1.26 247 10/12/2021
4.1.25 653 10/6/2021
4.1.24 823 9/26/2021
4.1.23 150 9/26/2021
4.1.22 139 9/26/2021
4.1.21 675 9/18/2021
4.1.20 1,285 9/9/2021
4.1.19 233 9/8/2021
4.1.18 229 9/8/2021
4.1.17 1,339 8/25/2021
4.1.16 6,655 5/30/2021
4.1.15 498 5/27/2021
4.1.14 785 5/23/2021
4.1.13-beta 604 5/2/2021
4.1.12-beta 498 4/12/2021
4.1.11-beta 3,582 3/30/2021
4.1.10-beta 638 3/21/2021
4.1.9-beta 1,023 2/21/2021
4.1.8-beta 240 2/16/2021
4.1.7-beta 1,303 2/14/2021
4.1.6-beta 298 2/8/2021
4.1.5-beta 287 2/1/2021
4.1.4-beta 185 1/25/2021
4.1.3-beta 343 12/27/2020
4.1.2-beta 304 12/12/2020
4.1.1-beta 238 11/29/2020
4.1.0-beta 182 11/29/2020
4.0.49 449 8/25/2021
4.0.48 15,517 12/27/2020
4.0.47 3,517 12/13/2020
4.0.46 365 12/11/2020
4.0.45 1,294 11/25/2020
4.0.44 428 11/22/2020
4.0.42 15,370 9/27/2020
4.0.41 344 9/26/2020
4.0.40 777 9/20/2020
4.0.39 10,450 8/9/2020
4.0.38 2,064 7/7/2020
4.0.37 761 6/22/2020
4.0.36 287 6/22/2020
4.0.35 1,061 6/9/2020
4.0.34 1,748 5/18/2020
4.0.33 238 5/18/2020
4.0.32 288 5/17/2020
4.0.31 1,412 5/6/2020
4.0.30 387 5/4/2020
4.0.29 14,583 4/11/2020
4.0.28 482 4/7/2020
4.0.27 813 4/5/2020
4.0.26 426 4/5/2020
4.0.25 759 3/29/2020
4.0.24 381 3/27/2020
4.0.23 426 3/23/2020
4.0.22 639 3/17/2020
4.0.21 2,057 3/15/2020
4.0.19 1,366 2/29/2020
4.0.18 1,944 2/7/2020
4.0.17 935 2/6/2020
4.0.16 433 2/2/2020
4.0.15 397 1/28/2020
4.0.14 465 1/24/2020
4.0.13 1,207 1/21/2020
4.0.12 291 1/21/2020
4.0.11 357 1/19/2020
4.0.10 346 1/18/2020
4.0.9 2,895 12/4/2019
4.0.8 228 12/3/2019
4.0.7 337 12/1/2019
4.0.5 350 11/27/2019
4.0.4 327 11/24/2019
4.0.3 280 11/23/2019
4.0.2 454 11/9/2019
4.0.1 926 11/3/2019
3.1.6 1,004 10/21/2019
3.1.5 452 10/7/2019
3.1.4 385 9/22/2019
3.1.3 625 8/25/2019
3.1.1 572 8/20/2019
3.0.9 829 8/12/2019
3.0.8 379 8/4/2019
3.0.7 318 7/27/2019
3.0.6 404 6/30/2019
3.0.5 301 6/24/2019
3.0.4 295 6/24/2019
3.0.3 1,733 5/29/2019
3.0.2 349 5/28/2019
3.0.1 403 5/28/2019