Display a color bar when rasterize is enabled #782
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.
Fixes #777
Before #206 the
cmap
style was handled as follows, i.e. when datashader was involved it was set to the default linear colormap:#206 made hvplot behave more closely to
xarray.plot()
by using a symmetric colormap if the data is found to be divergent. #206 replaced the code that set the colormap to linear, by setting the color bar, toTrue
by default:This PR:
True
by default whenrasterize=True
, whatever the value ofcmap
. This fixes the related issue. I'm not entirely sure this is the correct behavior for all plot kinds.datashade=True
as a color bar isn't relevant with this option.