Conversation
Fix ColorBar affect AxisLimits calculation.
|
Thanks @StendProg! This behavior is a lot more consistent with heatmaps I've interacted with in the past. This is a very useful addition. ScottPlot/src/ScottPlot/Plot/Plot.Add.cs Lines 276 to 330 in 141c6c3 I am considering removing the nullable min/max arguments, and forcing the user to define all 4 values when adding a coordinated heatmap. This could remove a lot of that null-checking code, but the main reason I think this may be a good idea is because it is not very obvious what passing null actually does without reading the source code. Perhaps an intermediate option could be to force the user to define the upper limits, while the lower limits default to zero. AddHeatMapCoordinated(double[,] intensities, double xMax, double yMax, double xMin = 0, double yMin = 0) I probably won't make the change until later when I finish working on other parts of the API, but if you feel strongly about what you think the best type of arguments I'd appreciate your input! Thanks again for this PR 👍 |
Purpose:
Allows to use an existing coordinate system to get additional coordinate information about
HeatMap. #701Additionaly Fix
ColorBar, with this PR it will not affect AxisLimits calculation.New Functionality:
User can provide coordinated boundaries for provided rectangular distribution.
Missing bounds are calculated based on the size of the
intensitiesarray.