時計回りの極座標軸
時計回りの極座標プロットは、空間的な向きを表すためによく使用されます。
ScottPlot.Plot myPlot = new();
var polarAxis = myPlot.Add.PolarAxis();
polarAxis.Clockwise = true;
polarAxis.Rotation = Angle.FromDegrees(-90); // 方向は反時計回りになります
IColormap colormap = new ScottPlot.Colormaps.Turbo();
foreach (double degrees in ScottPlot.Generate.Range(0, 360, 10))
{
double fraction = degrees / 360.0;
Coordinates pt = polarAxis.GetCoordinates(fraction, degrees);
var marker = myPlot.Add.Marker(pt);
marker.Color = colormap.GetColor(fraction);
}
myPlot.SavePng("demo.png", 400, 300);
このレシピは、極座標軸カテゴリにある多数のレシピの1つです
