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

名前でフォントを設定する

フォントを名前で設定し、一般的なプロットコンポーネントに適用します。

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

myPlot.Font.Set("Comic Sans MS");
myPlot.Title("こんにちは、世界");
var sig = myPlot.Add.Signal(Generate.Sin(51, mult: 1e6));
sig.LegendText = "こんにちは、カスタムフォント";

myPlot.SavePng("demo.png", 400, 300);
このレシピは、プロットのスタイリングカテゴリにある多数のレシピの1つです