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

データ領域の背景画像

データ領域の背景に画像を使用できます。

ScottPlot.Plot myPlot = new();

// サンプルデータをプロットする
var sig1 = myPlot.Add.Signal(Generate.Sin());
var sig2 = myPlot.Add.Signal(Generate.Cos());
sig1.LineWidth = 3;
sig2.LineWidth = 3;

// ファイルから画像を読み込むこともできます...
// Image bgImage = new("background.png");

// ただし、この例ではサンプル画像を使用します:
Image bgImage = SampleImages.ScottPlotLogo();
myPlot.DataBackground.Image = bgImage;

myPlot.SavePng("demo.png", 400, 300);
このレシピは、その他カテゴリにある多数のレシピのうちの 1 つです