New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for colormapping Contours #1499

Merged
merged 3 commits into from May 31, 2017

Conversation

Projects
None yet
2 participants
@philippjfr
Member

philippjfr commented May 31, 2017

Turns out Contours in bokeh did not support colormapping, which I noticed as I was reworking the Contours element example. Since colormapping is handled on a baseclass this was an easy addition:

%%opts Contours (cmap='viridis')
hv.operation.contours(hv.Image(np.sin(x**2+y**2)), levels=np.linspace(0, 1, 9),
                      overlaid=False)

bokeh_plot 59

@jlstevens

This comment has been minimized.

Member

jlstevens commented May 31, 2017

Great! The more consistent things can be, the better.

Happy to merge when the tests pass.

@philippjfr

This comment has been minimized.

Member

philippjfr commented May 31, 2017

So it turns out the matplotlib version also didn't support colormapping, so Contours has never worked like it was supposed to, while Polygons has.

@philippjfr

This comment has been minimized.

Member

philippjfr commented May 31, 2017

Ready to merge, PR build already passed.

@jlstevens

This comment has been minimized.

Member

jlstevens commented May 31, 2017

Merging.

@jlstevens jlstevens merged commit 0d983ea into master May 31, 2017

4 checks passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
coverage/coveralls Coverage increased (+1.1%) to 78.941%
Details
s3-reference-data-cache Test data is cached.
Details

@philippjfr philippjfr deleted the contours_bokeh branch Jun 17, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment