Allow Array of Markersize in AddScatter
See original GitHub issueCurrently it looks like in AddScatter the marker size can only be set for the whole series, but not individually. Would it be possible to accept an array of marker sizes so that each marker gets its own size?
` //current State formsPlot.Plot.AddScatter(xDate.ToArray(), ci.Data.ToArray(), Color.GreenYellow, lineWidth: 0, 5, MarkerShape.filledSquare);
//possible?
formsPlot.Plot.AddScatter(xDate.ToArray(), ci.Data.ToArray(),
Color.GreenYellow, lineWidth: 0, markerSize.ToArray(), MarkerShape.filledSquare);
`
You can currently create the behavior only with the AddPoint methode. However, you do not get a legend entry here. Maybe it is also a problem for performance if you add a lot of points with AddPoint?
Would be cool if you could do that with AddScatter:
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (3 by maintainers)
Top GitHub Comments
Hey @AlgoExecutor, thanks for this suggestion! I’m currently focusing on some larger immediate goals (documenting the new 4.1 version and getting it out of beta), so I’ll add this issue to the triage list (#716) and return to it once some of the more pressing issues are resolved 👍
AddPoint
can be an alternative as @swharden noted. However, the current problem here is performance. A small measurement shows the following:Tested with version: ScottPlot 4.1.7-beta
Number of points for every series: 1: 1971 2: 4402 3: 2546 5: 278 6: 496
Every point series have its own color / marker and variable size for every marker. Since e.g.
AddScatterPoints
renders faster I thought it would be a good thing to put the variable size for the markers there. Of course it could also indicate a general problem withAddPoint
?