ScottPlot.NET
GitHub Repo stars

Multiplot Grid

The Multiplot’s Layout property may be customized to achieve a grid layout.

ScottPlot.Multiplot multiplot = new();

// configure the multiplot to have 6 subplots
multiplot.AddPlots(6);

// add sample data to each subplot
for (int i = 0; i < multiplot.Subplots.Count; i++)
{
    Plot plot = multiplot.GetPlot(i);
    double[] ys = Generate.Sin(oscillations: i + 1);
    plot.Add.Signal(ys);
}

// configure the multiplot to use a grid layout
multiplot.Layout = new ScottPlot.MultiplotLayouts.Grid(rows: 2, columns: 3);

multiplot.SavePng("demo.png", 400, 400);
This recipe is one of many in the Multiplot category