ScottPlot / ScottPlot

Interactive plotting library for .NET
https://ScottPlot.net
MIT License
5.04k stars 819 forks source link

DataLogger: add support for custom line and marker styles #3963

Open jpgarza93 opened 2 months ago

jpgarza93 commented 2 months ago

Suggestion: Is there a reason why ScottPlot 5 DataLoggers do not contain Markers (IHasMarker)? I can see they are available in ScottPlot 4. It would be great to toggle between line and exact point representation :)

// existing line style
DataLogger.LineStyle.Width = 2;
DataLogger.LineStyle...

// add marker style
DataLogger.MarkerStyle.Width  = 2;
DataLogger.MarkerStyle...
jpgarza93 commented 2 months ago

Would adding another LineStyle that doesn't interpolate between data points be a good idea?

https://scottplot.net/cookbook/5.0/Styling/LineStyles/ image

Could it be called Point or MarkersOnly?

swharden commented 2 months ago

I like the idea! It may take me a while before I can get to this, but if you or someone from the community wants to create a PR that mimics the styling options of scatter plots, I'd be happy to review and merge it in good time 👍