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

アノテーションのクイックスタート

アノテーションは、プロットのデータ領域上に配置できるラベルです。プロットに追加した Text は軸上の座標単位で配置されるのに対し、アノテーションはデータ領域に対して相対的に(ピクセル単位で)配置され、プロットをパンやズームしても移動しません。

ScottPlot.Plot myPlot = new();

myPlot.Add.Signal(Generate.Sin());
myPlot.Add.Signal(Generate.Cos());

myPlot.Add.Annotation("This is an Annotation");

myPlot.SavePng("demo.png", 400, 300);
このレシピは、アノテーションカテゴリにある多数のレシピの 1 つです