楕円の回転
楕円は回転させることもできます
ScottPlot.Plot myPlot = new();
Coordinates center = new(0, 0);
double radiusX = 1;
double radiusY = 5;
for (int i = 0; i < 5; i++)
{
Angle angle = Angle.FromDegrees(i *20);
var el = myPlot.Add.Ellipse(center, radiusX, radiusY, angle);
el.LineWidth = 3;
el.LineColor = Colors.Blue.WithAlpha(0.1 + 0.2* i);
}
// ピクセルが 1:1 のスケール比になるように強制する
ScottPlot.AxisRules.SquareZoomOut rule = new(myPlot.Axes.Bottom, myPlot.Axes.Left);
myPlot.Axes.Rules.Add(rule);
myPlot.SavePng("demo.png", 400, 300);
このレシピは、楕円カテゴリにある多数のレシピの 1 つです
