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

Tooltip クイックスタート

ツールチップは、プロット上の X/Y 座標を指し示す注釈です。

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

double[] ys = Generate.Sin(50);
var plt = myPlot.Add.Signal(ys);
plt.MaximumMarkerSize = 20;

Coordinates tip = new(25, ys[25]);
Coordinates label = tip.WithDelta(8, .7);
myPlot.Add.Tooltip(tip, "特別な点", label);

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