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

関数の X 範囲制限

関数は X 値の範囲に制限できます。

ScottPlot.Plot myPlot = new();

static double func1(double x) => (Math.Sin(x) * Math.Sin(x / 2));

var f = myPlot.Add.Function(func1);
f.MinX = -3;
f.MaxX = 3;

myPlot.Axes.SetLimits(-5, 5, -.2, 1.0);

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