Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Multiplot クイックスタート

Multiplot クラスを使用して、複数のサブプロットを持つ図を作成します。

ScottPlot.Multiplot multiplot = new();

// 2つのサブプロットを使用するように multiplot を構成する
multiplot.AddPlots(2);
Plot plot1 = multiplot.Subplots.GetPlot(0);
Plot plot2 = multiplot.Subplots.GetPlot(1);

// 各サブプロットにサンプルデータを追加する
plot1.Add.Signal(Generate.Sin());
plot2.Add.Signal(Generate.Cos());

multiplot.SavePng("demo.png", 400, 400);
このレシピは、Multiplot カテゴリにある多数のレシピの1つです