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

水平レンジチャート

レンジチャートは、水平方向のバーを使用して作成できます

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

List<(string name, CoordinateRange range)> ranges =
[
    ("Ontario", new(-9, 51)),
    ("England", new(0, 63)),
    ("Kentucky", new(-4, 72)),
];

myPlot.Add.Ranges(ranges, horizontal: true);

myPlot.XLabel("気温 (ºF)");

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