ScottPlot 3.1.1

There is a newer version of this package available.
See the version list below for details.
dotnet add package ScottPlot --version 3.1.1
                    
NuGet\Install-Package ScottPlot -Version 3.1.1
                    
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.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ScottPlot" Version="3.1.1" />
                    
Directory.Packages.props
<PackageReference Include="ScottPlot" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ScottPlot --version 3.1.1
                    
#r "nuget: ScottPlot, 3.1.1"
                    
#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.
#addin nuget:?package=ScottPlot&version=3.1.1
                    
Install as a Cake Addin
#tool nuget:?package=ScottPlot&version=3.1.1
                    
Install as a Cake Tool

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

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

  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();
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 (36)

Showing the top 5 NuGet packages that depend on ScottPlot:

Package Downloads
ScottPlot.WPF

User controls for displaying interactive plots in WPF applications

ScottPlot.WinForms

User controls for displaying interactive plots in Windows Forms applications

ScottPlot.Avalonia

User controls for displaying interactive plots in Avalonia applications

ScottPlot.Eto

User controls for displaying interactive plots in Eto applications

Spectrogram

A .NET Standard library for creating spectrograms

GitHub repositories (16)

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

Repository Stars
QuestPDF/QuestPDF
Generate and edit PDF documents in your .NET applications using the open-source QuestPDF library and its C# Fluent API. Build invoices, reports and data exports with ease.
dotnet/BenchmarkDotNet
Powerful .NET library for benchmarking
ScottPlot/ScottPlot
Interactive plotting library for .NET
ariacom/Seal-Report
Database Reporting Tool and Tasks (.Net)
swharden/Csharp-Data-Visualization
Resources for visualizing data using C# and the .NET platform
polterguy/magic
An AI-based Low-Code and No-Code software development automation framework
chenxuuu/llcom
🛠功能强大的串口工具。支持Lua自动化处理、串口调试、WinUSB、串口曲线、TCP测试、MQTT测试、编码转换、乱码恢复等功能
asc-community/AngouriMath
New open-source cross-platform symbolic algebra library for C# and F#. Can be used for both production and research purposes.
VedAstro/VedAstro
A non-profit, open source project to make Vedic Astrology easily available to all.
OndrejNepozitek/Edgar-DotNet
Configurable procedural layout generator
rstropek/Samples
toniebox-reverse-engineering/teddy
With this tool you can dump existing files for the famous audio box or create custom ones.
ShootMe/FallGuysStats
Fall Guys Stats Tracker
project-sbc/Handheld-Control-Panel
RomanZhu/FixedPoint-Sharp
Fixed point math with 48.16 precision (based on lib by https://github.com/fholm)
HerrRiebmann/KDS2Bluetooth
Kawasaki Diagnostic Service Reader via Bluetooth
Version Downloads Last Updated
5.0.55 88,034 3/22/2025
5.0.54 100,977 1/26/2025
5.0.53 17,598 1/13/2025
5.0.52 5,829 1/9/2025
5.0.51 2,440 1/8/2025
5.0.50 3,448 1/7/2025
5.0.49 612 1/6/2025
5.0.48 2,860 1/6/2025
5.0.47 66,935 11/24/2024
5.0.46 22,502 11/17/2024
5.0.45 11,114 11/13/2024
5.0.44 6,544 11/9/2024
5.0.43 27,056 11/3/2024
5.0.42 6,740 10/30/2024
5.0.41 5,374 10/28/2024
5.0.40 14,264 10/16/2024
5.0.39 89,508 9/9/2024
5.0.38 10,346 9/2/2024
5.0.37 54,101 7/30/2024
5.0.36 52,063 6/29/2024
5.0.35 28,171 6/10/2024
5.0.34 80,212 5/5/2024
5.0.33 917 5/4/2024
5.0.32 4,006 5/1/2024
5.0.31 5,057 4/27/2024
5.0.30 1,306 4/27/2024
5.0.29 603 4/26/2024
5.0.28 1,529 4/25/2024
5.0.27 11,708 4/23/2024
5.0.26 17,331 4/14/2024
5.0.25 18,753 4/8/2024
5.0.24 3,558 4/7/2024
5.0.23 14,185 3/24/2024
5.0.22 11,976 3/17/2024
5.0.21 35,946 1/29/2024
5.0.20 7,699 1/22/2024
5.0.19 1,886 1/19/2024
5.0.18 2,745 1/18/2024
5.0.17 3,482 1/17/2024
5.0.16 772 1/16/2024
5.0.15 4,352 1/14/2024
5.0.14-beta 442 1/11/2024
5.0.13-beta 336 1/10/2024
5.0.12-beta 286 1/9/2024
5.0.11-beta 1,584 12/28/2023
5.0.10-beta 3,428 12/4/2023
5.0.9-beta 11,879 10/3/2023
5.0.8-beta 30,601 8/13/2023
5.0.7-beta 1,110 8/7/2023
5.0.6-beta 10,428 7/9/2023
5.0.5-beta 1,922 5/18/2023
5.0.4-beta 2,839 4/9/2023
5.0.3-beta 578 4/3/2023
5.0.2-beta 3,503 2/28/2023
5.0.1-beta 1,482 2/9/2023
5.0.0-beta 2,699 1/1/2023
4.1.74 44,534 4/14/2024
4.1.73 16,286 3/24/2024
4.1.72 5,691 3/17/2024
4.1.71 14,497 1/22/2024
4.1.70 53,624 12/28/2023
4.1.69 31,050 12/4/2023
4.1.68 91,395 10/3/2023
4.1.67 74,637 8/13/2023
4.1.66 68,713 8/7/2023
4.1.65 31,037 7/9/2023
4.1.64 66,179 5/18/2023
4.1.63 24,395 4/9/2023
4.1.62 8,449 4/3/2023
4.1.61 40,693 2/28/2023
4.1.60 58,818 12/23/2022
4.1.59 112,362 11/7/2022
4.1.58 35,090 9/9/2022
4.1.57 32,960 8/18/2022
4.1.56 2,589 8/16/2022
4.1.55 4,918 8/15/2022
4.1.53 3,456 8/12/2022
4.1.52 58,041 7/10/2022
4.1.51 7,398 6/30/2022
4.1.50 3,582 6/26/2022
4.1.49 3,692 6/22/2022
4.1.48 4,470 6/9/2022
4.1.47 2,979 6/8/2022
4.1.46 2,902 6/6/2022
4.1.45 40,263 5/6/2022
4.1.44 2,071 5/5/2022
4.1.43 6,816 5/3/2022
4.1.42 2,537 5/1/2022
4.1.41 12,659 4/9/2022
4.1.40 2,691 4/7/2022
4.1.39 9,622 4/1/2022
4.1.38 2,095 3/31/2022
4.1.37 91,304 3/26/2022
4.1.36 6,932 3/19/2022
4.1.35 6,171 3/7/2022
4.1.34 6,409 3/4/2022
4.1.33 18,805 2/5/2022
4.1.32 6,265 1/24/2022
4.1.31 12,134 1/18/2022
4.1.30 2,790 1/15/2022
4.1.29 19,795 1/2/2022
4.1.28 1,999 1/2/2022
4.1.27 48,034 10/24/2021
4.1.26 9,690 10/12/2021
4.1.25 5,565 10/6/2021
4.1.24 2,755 9/26/2021
4.1.23 1,350 9/26/2021
4.1.22 1,348 9/26/2021
4.1.21 3,735 9/18/2021
4.1.20 4,336 9/9/2021
4.1.19 1,520 9/8/2021
4.1.18 4,639 9/8/2021
4.1.17 46,183 8/25/2021
4.1.16 18,378 5/30/2021
4.1.15 1,804 5/27/2021
4.1.14 4,592 5/23/2021
4.1.13-beta 1,698 5/2/2021
4.1.12-beta 1,461 4/12/2021
4.1.11-beta 4,993 3/30/2021
4.1.10-beta 1,489 3/21/2021
4.1.9-beta 2,487 2/21/2021
4.1.8-beta 956 2/16/2021
4.1.7-beta 3,020 2/14/2021
4.1.6-beta 1,144 2/8/2021
4.1.5-beta 1,019 2/1/2021
4.1.4-beta 911 1/25/2021
4.1.3-beta 1,109 12/27/2020
4.1.2-beta 1,050 12/12/2020
4.1.1-beta 980 11/29/2020
4.1.0-beta 941 11/29/2020
4.0.49 6,690 8/25/2021
4.0.48 69,955 12/27/2020
4.0.47 17,865 12/13/2020
4.0.46 1,544 12/11/2020
4.0.45 2,986 11/25/2020
4.0.44 1,708 11/22/2020
4.0.42 30,709 9/27/2020
4.0.41 1,557 9/26/2020
4.0.40 2,541 9/20/2020
4.0.39 38,543 8/9/2020
4.0.38 4,051 7/7/2020
4.0.37 2,919 6/22/2020
4.0.36 1,317 6/22/2020
4.0.35 2,344 6/9/2020
4.0.34 3,244 5/18/2020
4.0.33 1,373 5/18/2020
4.0.32 1,379 5/17/2020
4.0.31 2,512 5/6/2020
4.0.30 1,487 5/4/2020
4.0.29 38,047 4/11/2020
4.0.28 2,119 4/7/2020
4.0.27 1,871 4/5/2020
4.0.26 1,518 4/5/2020
4.0.25 1,938 3/29/2020
4.0.24 1,528 3/27/2020
4.0.23 1,459 3/23/2020
4.0.22 1,669 3/17/2020
4.0.21 12,759 3/15/2020
4.0.19 2,810 2/29/2020
4.0.18 5,904 2/7/2020
4.0.17 1,974 2/6/2020
4.0.16 1,453 2/2/2020
4.0.15 1,511 1/28/2020
4.0.14 1,495 1/24/2020
4.0.13 2,257 1/21/2020
4.0.12 1,274 1/21/2020
4.0.11 1,391 1/19/2020
4.0.10 1,544 1/18/2020
4.0.9 6,631 12/4/2019
4.0.8 824 12/3/2019
4.0.7 1,369 12/1/2019
4.0.5 1,603 11/27/2019
4.0.4 1,388 11/24/2019
4.0.3 1,351 11/23/2019
4.0.2 1,552 11/9/2019
4.0.1 3,003 11/3/2019
3.1.6 4,247 10/21/2019
3.1.5 1,122 10/7/2019
3.1.4 985 9/22/2019
3.1.3 1,234 8/25/2019
3.1.1 1,214 8/20/2019
3.0.9 2,093 8/12/2019
3.0.8 1,048 8/4/2019
3.0.7 942 7/27/2019
3.0.6 1,049 6/30/2019
3.0.5 933 6/24/2019
3.0.4 875 6/24/2019
3.0.3 3,352 5/29/2019
3.0.2 963 5/28/2019
3.0.1 2,196 5/28/2019