The transition from ScottPlot 5.0 to 5.1 has breaking changes which are likely to affect advanced users who maintain custom plot types. Upgrading our SkiaSharp from 2.88 to 3.119 brought many improvements, but significantly changed the functionality of SkiaSharp.SKPaint which many of our drawing operations relied on. To minimize the impact of this change, references to SkiaSharp.SKPaint have been replaced with ScottPlot.Paint which closely resembles the original API, minimizing amount of code changes required to upgrade. This version aims at making this upgrade possible, and future versions will refine these objects to improve performance and minimize allocations.
Public methods that accepted SkiaSharp.SKPaint now accept ScottPlot.Paint
Paint.MeasureText() now returns a single PixelRect instead of using out variables
Rendering: Significantly reduced the number of allocations by passing Paint throughout the render flow
NuGet: Bundle all third party license and copyright notices into a single file included in the NuGet package (#5068, #5075) @jelhan, @bclehmann
Colormaps: Updated the Turbo colormap to use the identical color table published by the original author (#5075) @bclehmann
Interactive Plottables: Created a new collection of interactive plottables which do not require manually wiring mouse events to support hover and click-drag manipulation
Controls: Added SetCursor() functionality to IPlotControl to improve cross-platform support for mouse interactions
SignalXY: Reduced heap allocations by modifying ISignalXYSource to use IReadOnlyList<Pixel> instead of Pixel[] (#5091, #5078) @bclehmann
Palette: Added Invert() and InvertHue() to IPalette so palettes for light backgrounds can be reused for dark backgrounds (#5094) @NeilMacMullen
Colormap: Added Invert() and InvertHue() to IPalette so palettes for light backgrounds can be reused for dark backgrounds (#5094) @NeilMacMullen
Palettes: Added a ColorblindFriendlyDark palette to improve accessibility of categorical plots with dark backgrounds (#5094) @NeilMacMullen
Multiplot: Added a collection of PreRenderActions to facilitate synchronization of data between subplots (#5095) @NeilMacMullen
Histogram: Optimized bin count accumulation strategy to improve performance when creating histograms (#5102) @fissssssh
Legend: Added support for defining an Index so manually added items can be displayed in preferred sequence (#5107) @timmer98
Avalonia: Improve behavior through focus release and acquisition cycles (#5109, #5105) @nbeck-SMT