Use new multistop gradients for continuous colorbars #2910
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Avoids using lots of little rectangles for continuous colorscales, which was causing small colorbars to draw outside their boundaries due to some annoying and probably still wrong logic where we expand them a little in order to ensure overlaps so we don't see gaps due to antialiasing, so now I think we really can close #970. And yes github, I mean it this time.
I also fixed the original problem of slightly overflowing colorbars, but now that we're not using this for continuous colorscales it would only arise if you were to create a contour plot with very dense contours, particularly if you don't show the contour lines at all, only fills. Anyway there are other benefits to using a gradient:
cc @etpinard