ScottPlot Documentation
repository·main·Indexed 27 days ago
https://github.com/scottplot/scottplotA high-performance, open-source .NET plotting library optimized for interactively displaying large datasets. It supports a wide range of platforms including Windows Forms, WPF, Console, Uno Platform, Blazor, Avalonia, Eto, .NET MAUI, WinUI, and .NET Interactive Notebooks.
What's inside ScottPlot
- ScottPlot is a free and open-source plotting library for .NET designed to make it easy to interactively display large datasets. It supports a wide variety of environments including Windows Forms, WPF, Console, Uno Platform, Blazor, Avalonia, Eto, and Notebooks.
Quickstart for Uno Platform
mainTo get started with ScottPlot in an Uno Platform application, follow the official Uno Platform quickstart guide at https://scottplot.net/quickstart/unoplatform/.Quickstart for Windows Forms
mainTo use ScottPlot in a Windows Forms application:
- Install the
ScottPlot.WinFormsNuGet package. - Drag a
FormsPlotcontrol from the Toolbox onto your Form. - Access the
Plotproperty of the control to add data, then callRefresh()to update the display.
double[] dataX = { 1, 2, 3, 4, 5 }; double[] dataY = { 1, 4, 9, 16, 25 }; formsPlot1.Plot.Add.Scatter(dataX, dataY); formsPlot1.Refresh();- Install the
Quickstart ScottPlot with Eto.Forms
mainTo get started with ScottPlot in an Eto.Forms application, follow the official Eto quickstart guide at https://scottplot.net/quickstart/eto/.Quickstart ScottPlot for WPF
mainTo get started with ScottPlot in a WPF application, follow the official WPF Quickstart guide at https://scottplot.net/quickstart/wpf/. ScottPlot is a free and open-source plotting library for .NET designed for interactive display of large datasets.Quickstart ScottPlot for Avalonia
mainTo get started with using ScottPlot in an Avalonia application, follow the official Avalonia Quickstart guide at https://scottplot.net/quickstart/avalonia/.Quickstart Blazor integration with ScottPlot
mainTo get started with using ScottPlot in a Blazor application, follow the official Blazor Quickstart guide at https://scottplot.net/quickstart/blazor/.Quickstart ScottPlot for .NET MAUI
mainTo get started with ScottPlot in a .NET MAUI application, follow the official quickstart guide at https://scottplot.net/quickstart/maui/. ScottPlot is a free and open-source plotting library designed for the interactive display of large datasets in .NET applications.Quickstart with ScottPlot
mainTo create a basic plot and save it as an image file, instantiate a
ScottPlot.Plotobject, add data using methods likeAdd.Scatter, and useSavePngto export the result.double[] dataX = { 1, 2, 3, 4, 5 }; double[] dataY = { 1, 4, 9, 16, 25 }; ScottPlot.Plot myPlot = new(); myPlot.Add.Scatter(dataX, dataY); myPlot.SavePng("quickstart.png", 400, 300);Quickstart ScottPlot for Windows Forms
mainTo get started with ScottPlot in a Windows Forms application, follow the official Windows Forms Quickstart guide at https://scottplot.net/quickstart/winforms/.Quickstart for WinUI
mainTo get started with ScottPlot in a WinUI application, follow the official WinUI quickstart guide at https://scottplot.net/quickstart/winui/.Use CreateWindow instead of MainPage in .NET 10 MAUI
mainIn .NET 10 MAUI, the
Application.MainPageproperty is obsolete. To initialize your application's root page, you should override theCreateWindowmethod instead of using theMainPagesetter.Old Pattern (Obsolete):
MainPage = new AppShell();New Pattern (.NET 10):
protected override Window CreateWindow(IActivationState activationState) { return new Window(new AppShell()); }