Polar Axis Rotation
A polar axis may be rotated to define the angle of the 0 degree spoke.
ScottPlot.Plot myPlot = new();
var polarAxis = myPlot.Add.PolarAxis();
polarAxis.Rotation = Angle.FromDegrees(90); // default direction is counter-clockwise
IColormap colormap = new ScottPlot.Colormaps.Turbo();
foreach (double degrees in ScottPlot.Generate.Range(0, 360, 10))
{
double radius = degrees / 360.0;
Coordinates pt = polarAxis.GetCoordinates(radius, degrees);
var marker = myPlot.Add.Marker(pt);
marker.Color = colormap.GetColor(radius);
}
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Polar Axis category
