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

Signal プロットのスタイル設定

Signal プロットはさまざまな方法でスタイル設定できます。

Signal.cs
ScottPlot.Plot myPlot = new();

var sig1 = myPlot.Add.Signal(Generate.Sin());
sig1.Color = Colors.Magenta;
sig1.LineWidth = 10;
sig1.LegendText = "サイン";

var sig2 = myPlot.Add.Signal(Generate.Cos());
sig2.Color = Colors.Green;
sig2.LineWidth = 5;
sig2.LegendText = "コサイン";

myPlot.ShowLegend();

myPlot.SavePng("demo.png", 400, 300);
このレシピは、Signal プロットカテゴリに含まれる多数のレシピの 1 つです