ScottPlot.NET

Visual Basic Quickstart

Step 1: Install the ScottPlot NuGet package

Step 2: Plot some data and save the figure as an image file

This code sample is specific to ScottPlot 5 (details)
Dim xs = New Double() { 1, 2, 3, 4, 5 }
Dim ys = New Double() { 1, 4, 9, 16, 25 }

Dim plt = New ScottPlot.Plot()
plt.Add.Scatter(xs, ys)

plt.SaveFig("quickstart.png")

Visual Basic Windows Forms App

Step 1: Install the ScottPlot NuGet package

Step 2: Drag a FormsPlot control from the toolbox onto your Form

Step 3: Plot some data and call the control’s Refresh() method

This code sample is specific to ScottPlot 5 (details)
Public Class Form1
    Public Sub New()
        InitializeComponent()

        Dim xs = New Double() { 1, 2, 3, 4, 5 }
        Dim ys = New Double() { 1, 4, 9, 16, 25 }

        Dim plt = New ScottPlot.Plot()
        FormsPlot1.Plot.Add.Scatter(xs, ys)
        FormsPlot1.Refresh();
    End Sub
End Class