ScottPlot.NET
GitHub Repo stars

Interactive Plots in MDI Containers

Windows forms allows child windows to be created inside MDI containers. See the official Microsoft documentation for details. Code here shows how to create child windows that display ScottPlot plots.

public partial class Form1 : Form
{
    public Form1()
    {
        InitializeComponent();

        this.IsMdiContainer = true;

        button1.Click += (s, e) =>
        {
            Form childForm = new() { MdiParent = this };
            ScottPlot.WinForms.FormsPlot FormsPlot1 = new() { Dock = DockStyle.Fill };
            childForm.Controls.Add(FormsPlot1);
            FormsPlot1.Plot.Add.Signal(ScottPlot.Generate.RandomWalk(100));
            childForm.Show();
        };
    }
}