You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* bfix: Check the amount of points passed in to `drawSolidPolygon` and `drawPlotLines` for the various renderers before rendering anything and add missing image verification to tests.
* bfix: "fix" bug where in some cases and some renderers the x labels showed values with too many decimal places due to numeric error.
In reality this just decreases the possibility of this happening again by reducing an extra division followed by a multiplication by the same value, which in some cases would result in loss of precision to the point where the string representation also had to change and show more decimal places.
We should in the future round the number to a certain number of decimal places by default and give the user control over it.
* bfix: Fix bug where the histogram bin edges were drawn slightly misaligned with the grid/markers
And at the same time reveal a bug with drawing rectangles that touch each other where the x coordinate is not a whole number.
When rendering with raster renderers this results in white lines with differing widths.
* [bfix][rfac]: Fix bug where white lines appear through histogram bin edges due to previous commit.
This is the easy approach, in the case of multiple series the colour of the series in the back might/will bleed through the edges of the one in the front, even when/if there are no columns of the back series nearby.
Also refactored the code inside `drawData` slightly for better code reuse between `.bar` and `.step` cases.
* Rename test numbers to make space for a new one.
* Add new test for colour bleeding.
6 series, all the ways to pair 6 different colours side by side.
* bfix: Colour from some series in the background were bleeding through some edges due to the last commit, this fixes that with an improved algorithm.
This is the same idea as with the `.step` case, using conditions and rules to decide what points to add to form a polygon. In this case "tucking" the background series a little behind the foreground one by `floor`ing or `ceil`ing the right points.
Also improved the algorithm for `.step` by removing one "instruction" and reducing the cases some of the instructions were being emitted redundantly to the minimum possible, while preserving the same output.
* Change `floor`/`ceil` to `.rounded(.up)`/`.rounded(.down)`.
* Change guard statements to preconditions.
* Revert back to using rectangles for `.bar`.
* Revert `barWidth` to being rounded, update the test images and run `swift test --generate-linuxmain`.
0 commit comments