Clockwise Polar Axis
Clockwise polar plots are common for representing spatial orientation.
ScottPlot.Plot myPlot = new();
var polarAxis = myPlot.Add.PolarAxis();
polarAxis.Clockwise = true;
polarAxis.Rotation = Angle.FromDegrees(-90); // direction will be counter-clockwise
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);
This recipe is one of many in the Polar Axis category
