The largest changes between ScottPlot 4.0 and ScottPlot 4.1 are noted here
- Plottables have been moved and renamed
- e.g.,
ScottPlot.PlottableBaris nowScottPlot.Plottable.BarPlot
- e.g.,
- Plottable-creating helper methods have been renamed
- e.g.,
Plot.PlotScatter()is nowPlot.AddScatter()
- e.g.,
Axis()has been replaced bySetAxisLimits()andGetAxisLimits()- Plottable fields are now capitol
- e.g.,
fillColoris nowFillColor
- e.g.,
- Value types can be modified by editing public fields
- e.g.,
vline1.X = 123;
- e.g.,
- Values in arrays can be modified at any time
- e.g.,
scatterplot1.Xs[10] = 123;
- e.g.,
- Replacing arrays requires calling a helper method
- e.g.,
scatterplot1.Update(newXs, newYs);
- e.g.,
The render system was largely refactored to improve multi-threaded support in user controls.
- Bitmaps are now never stored in the
Plotmodule - Bitmaps can be passed-in to the
Render()method (for the plot to be rendered onto), or created whenRender()is called and returned.
- User controls now use a central back-end so behavior of all controls is managed by a single class
- Configuration is no longer achieved by calling
formsPlot1.Configure()but instead interacting withformsPlot.Configuration - Controls have new event handlers to allow users to customize:
- Right-click action (defaults to a drop-down menu)
- Drag/Drop actions
- What happens when axes change (useful for linking multiple plots together)