ScottPlot 3.1.6

There is a newer version of this package available.
See the version list below for details.
dotnet add package ScottPlot --version 3.1.6
NuGet\Install-Package ScottPlot -Version 3.1.6
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ScottPlot" Version="3.1.6" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ScottPlot --version 3.1.6
#r "nuget: ScottPlot, 3.1.6"
#r directive can be used in F# Interactive and Polyglot Notebooks. 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.6

// Install ScottPlot as a Cake Tool
#tool nuget:?package=ScottPlot&version=3.1.6

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

alternate text is missing from this package README image

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

MainWindow.xaml
<Window x:Class="WpfApp4.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApp4"
        xmlns:ScottPlot="clr-namespace:ScottPlot;assembly=ScottPlot"
        mc:Ignorable="d"
        Title="MainWindow" Height="450" Width="800">
    <Grid>
        <ScottPlot:WpfPlot Name="wpfPlot1"/>
    </Grid>
</Window>
MainWindow.xaml.cs
public MainWindow()
{
    InitializeComponent();
    wpfPlot1.plt.Title("WPF Demo");
    wpfPlot1.plt.YLabel("signal level");
    wpfPlot1.plt.XLabel("horizontal units");
    Random rand = new Random();
    wpfPlot1.plt.PlotSignal(ScottPlot.DataGen.RandomWalk(rand, 10_000));
    wpfPlot1.plt.PlotSignal(ScottPlot.DataGen.RandomWalk(rand, 10_000));
    wpfPlot1.plt.PlotSignal(ScottPlot.DataGen.RandomWalk(rand, 10_000));
    wpfPlot1.plt.AxisAuto();
    wpfPlot1.Render();
}
Product Compatible and additional computed target framework versions.
.NET Framework net45 is compatible.  net451 was computed.  net452 was computed.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (26)

Showing the top 5 NuGet packages that depend on ScottPlot:

Package Downloads
ScottPlot.WPF The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

User controls for displaying interactive plots in WPF applications

ScottPlot.WinForms The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

User controls for displaying interactive plots in Windows Forms applications

ScottPlot.Avalonia The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

User controls for displaying interactive plots in Avalonia applications

ScottPlot.Eto The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org.

User controls for displaying interactive plots in Eto applications

BioCore

A .NET library & program for annotating, & editing various microscopy imaging formats using Bioformats supported images. including whole slide, pyramidal & series.

GitHub repositories (14)

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

Repository Stars
ariacom/Seal-Report
Open Database Reporting Tool (.Net)
swharden/Csharp-Data-Visualization
Resources for visualizing data using C# and the .NET platform
asc-community/AngouriMath
New open-source cross-platform symbolic algebra library for C# and F#. Can be used for both production and research purposes.
chenxuuu/llcom
🛠功能强大的串口工具。支持Lua自动化处理、串口调试、串口监听、串口曲线、TCP测试、MQTT测试、编码转换、乱码恢复等功能
rstropek/Samples
Version Downloads Last updated
5.0.23 1,234 3/24/2024
5.0.22 2,893 3/17/2024
5.0.21 14,632 1/29/2024
5.0.20 3,186 1/22/2024
5.0.19 1,279 1/19/2024
5.0.18 902 1/18/2024
5.0.17 1,638 1/17/2024
5.0.16 483 1/16/2024
5.0.15 930 1/14/2024
5.0.14-beta 315 1/11/2024
5.0.13-beta 233 1/10/2024
5.0.12-beta 184 1/9/2024
5.0.11-beta 1,215 12/28/2023
5.0.10-beta 1,934 12/4/2023
5.0.9-beta 11,261 10/3/2023
5.0.8-beta 19,873 8/13/2023
5.0.7-beta 1,007 8/7/2023
5.0.6-beta 5,610 7/9/2023
5.0.5-beta 1,676 5/18/2023
5.0.4-beta 2,057 4/9/2023
5.0.3-beta 486 4/3/2023
5.0.2-beta 2,710 2/28/2023
5.0.1-beta 1,188 2/9/2023
5.0.0-beta 2,233 1/1/2023
4.1.73 364 3/24/2024
4.1.72 756 3/17/2024
4.1.71 4,681 1/22/2024
4.1.70 13,359 12/28/2023
4.1.69 13,634 12/4/2023
4.1.68 41,629 10/3/2023
4.1.67 31,968 8/13/2023
4.1.66 25,183 8/7/2023
4.1.65 15,690 7/9/2023
4.1.64 47,085 5/18/2023
4.1.63 21,015 4/9/2023
4.1.62 6,008 4/3/2023
4.1.61 25,066 2/28/2023
4.1.60 41,880 12/23/2022
4.1.59 68,355 11/7/2022
4.1.58 30,188 9/9/2022
4.1.57 15,650 8/18/2022
4.1.56 2,321 8/16/2022
4.1.55 3,763 8/15/2022
4.1.53 2,776 8/12/2022
4.1.52 33,950 7/10/2022
4.1.51 6,283 6/30/2022
4.1.50 3,015 6/26/2022
4.1.49 2,939 6/22/2022
4.1.48 3,897 6/9/2022
4.1.47 2,714 6/8/2022
4.1.46 2,656 6/6/2022
4.1.45 34,368 5/6/2022
4.1.44 1,917 5/5/2022
4.1.43 5,828 5/3/2022
4.1.42 2,249 5/1/2022
4.1.41 9,923 4/9/2022
4.1.40 2,438 4/7/2022
4.1.39 9,187 4/1/2022
4.1.38 1,899 3/31/2022
4.1.37 46,369 3/26/2022
4.1.36 6,002 3/19/2022
4.1.35 5,110 3/7/2022
4.1.34 4,654 3/4/2022
4.1.33 15,040 2/5/2022
4.1.32 5,687 1/24/2022
4.1.31 7,841 1/18/2022
4.1.30 2,550 1/15/2022
4.1.29 16,052 1/2/2022
4.1.28 1,566 1/2/2022
4.1.27 39,453 10/24/2021
4.1.26 5,230 10/12/2021
4.1.25 5,322 10/6/2021
4.1.24 2,468 9/26/2021
4.1.23 1,201 9/26/2021
4.1.22 1,193 9/26/2021
4.1.21 3,122 9/18/2021
4.1.20 3,956 9/9/2021
4.1.19 1,326 9/8/2021
4.1.18 1,292 9/8/2021
4.1.17 25,054 8/25/2021
4.1.16 14,416 5/30/2021
4.1.15 1,617 5/27/2021
4.1.14 3,328 5/23/2021
4.1.13-beta 1,551 5/2/2021
4.1.12-beta 1,262 4/12/2021
4.1.11-beta 4,877 3/30/2021
4.1.10-beta 1,347 3/21/2021
4.1.9-beta 2,224 2/21/2021
4.1.8-beta 841 2/16/2021
4.1.7-beta 2,898 2/14/2021
4.1.6-beta 1,002 2/8/2021
4.1.5-beta 898 2/1/2021
4.1.4-beta 784 1/25/2021
4.1.3-beta 975 12/27/2020
4.1.2-beta 923 12/12/2020
4.1.1-beta 838 11/29/2020
4.1.0-beta 818 11/29/2020
4.0.49 5,967 8/25/2021
4.0.48 53,313 12/27/2020
4.0.47 13,654 12/13/2020
4.0.46 1,393 12/11/2020
4.0.45 2,774 11/25/2020
4.0.44 1,542 11/22/2020
4.0.42 26,147 9/27/2020
4.0.41 1,411 9/26/2020
4.0.40 2,212 9/20/2020
4.0.39 32,506 8/9/2020
4.0.38 3,565 7/7/2020
4.0.37 2,405 6/22/2020
4.0.36 1,176 6/22/2020
4.0.35 2,103 6/9/2020
4.0.34 3,089 5/18/2020
4.0.33 1,239 5/18/2020
4.0.32 1,240 5/17/2020
4.0.31 2,367 5/6/2020
4.0.30 1,309 5/4/2020
4.0.29 17,640 4/11/2020
4.0.28 1,720 4/7/2020
4.0.27 1,735 4/5/2020
4.0.26 1,377 4/5/2020
4.0.25 1,749 3/29/2020
4.0.24 1,350 3/27/2020
4.0.23 1,321 3/23/2020
4.0.22 1,538 3/17/2020
4.0.21 7,214 3/15/2020
4.0.19 2,655 2/29/2020
4.0.18 5,181 2/7/2020
4.0.17 1,840 2/6/2020
4.0.16 1,322 2/2/2020
4.0.15 1,356 1/28/2020
4.0.14 1,355 1/24/2020
4.0.13 2,114 1/21/2020
4.0.12 1,125 1/21/2020
4.0.11 1,250 1/19/2020
4.0.10 1,306 1/18/2020
4.0.9 6,371 12/4/2019
4.0.8 700 12/3/2019
4.0.7 1,207 12/1/2019
4.0.5 1,428 11/27/2019
4.0.4 1,258 11/24/2019
4.0.3 1,213 11/23/2019
4.0.2 1,390 11/9/2019
4.0.1 2,385 11/3/2019
3.1.6 3,335 10/21/2019
3.1.5 963 10/7/2019
3.1.4 840 9/22/2019
3.1.3 1,111 8/25/2019
3.1.1 1,071 8/20/2019
3.0.9 1,785 8/12/2019
3.0.8 920 8/4/2019
3.0.7 828 7/27/2019
3.0.6 899 6/30/2019
3.0.5 821 6/24/2019
3.0.4 758 6/24/2019
3.0.3 3,066 5/29/2019
3.0.2 834 5/28/2019
3.0.1 1,251 5/28/2019