ScottPlot 3.1.4

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

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.

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

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

Release Notes

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

Dependencies

This package has no dependencies.

Showing the top 1 GitHub repositories that depend on ScottPlot:

Repository Stars
swharden/Csharp-Data-Visualization
A collection of minimal-case example projects which display data with Visual Studio

Version History

Version Downloads Last updated
3.1.4 3 9/22/2019
3.1.3 238 8/25/2019
3.1.1 110 8/20/2019
3.0.9 146 8/12/2019
3.0.8 120 8/4/2019
3.0.7 93 7/27/2019
3.0.6 177 6/30/2019
3.0.5 86 6/24/2019
3.0.4 72 6/24/2019
3.0.3 330 5/29/2019
3.0.2 85 5/28/2019
3.0.1 97 5/28/2019