Step 1: Install the ScottPlot.WinForms
NuGet package
Step 2: Drag a FormsPlot
from the Toolbox onto your Form
Step 3: Plot some data in your start-up sequence
double[] dataX = new double[] { 1, 2, 3, 4, 5 };
double[] dataY = new double[] { 1, 4, 9, 16, 25 };
formsPlot1.Plot.AddScatter(dataX, dataY);
formsPlot1.Refresh();
⚠️ WARNING: ScottPlot 5 has not yet been released.
ScottPlot 5 preview packages are available on NuGet for experimentation.
ScottPlot 5 is being actively developed, but it is not yet feature complete, fully documented,
supported, or recommended for production use at this time.
See the ScottPlot versions page for more information.
double[] dataX = { 1, 2, 3, 4, 5 };
double[] dataY = { 1, 4, 9, 16, 25 };
formsPlot1.Plot.Add.Scatter(dataX, dataY);
formsPlot1.Refresh();
How to add a Plot Control Programmatically
If users are not using the visual designer (or are having trouble locating the plot control in the toolbox), a FormsPlot can be added to the Form programmatically. See the FAQ: Add ScottPlot WinForms Control Programmatically page for additional information.