Line Only Markers
Markers composed of lines only do not have fill properties.
ScottPlot.Plot myPlot = new();
MarkerShape[] lineOnlyMarkerShapes = [
MarkerShape.OpenCircle,
MarkerShape.OpenSquare,
MarkerShape.OpenTriangleUp,
MarkerShape.Eks,
MarkerShape.Cross,
MarkerShape.Asterisk,
MarkerShape.HashTag,
];
for (int i = 0; i < lineOnlyMarkerShapes.Length; i++)
{
var marker = myPlot.Add.Marker(i, 0, lineOnlyMarkerShapes[i]);
// line only markers have line customization options
marker.MarkerLineColor = Colors.Blue;
marker.LineWidth = 2;
marker.MarkerSize = 20;
// line only markers are unaffected by changes in fill properties
marker.MarkerFillColor = Colors.Green;
}
myPlot.Layout.Frameless();
myPlot.HideGrid();
myPlot.SavePng("demo.png", 400, 300);
This recipe is one of many in the Marker category
