Skip to content
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

Allow casting from GridImage to QuadMesh #1223

Merged
merged 1 commit into from Mar 23, 2017
Merged

Allow casting from GridImage to QuadMesh #1223

merged 1 commit into from Mar 23, 2017

Conversation

@philippjfr
Copy link
Member

@philippjfr philippjfr commented Mar 23, 2017

Useful now and will continue working just fine in the future when the image interface has been added. Lets you do something like this to get hover information from a datashaded plot:

%%opts QuadMesh (fill_alpha=0) [tools=['hover']]
points = hv.Points(np.random.multivariate_normal((0,0), [[0.1, 0.1], [0.1, 1.0]], (1000000,)))
datashade(points, width=400, height=400) * hv.util.Dynamic(aggregate(points, width=100, height=100),
                                                           operation=lambda x: hv.QuadMesh(x))

hover

@jbednar
Copy link
Member

@jbednar jbednar commented Mar 23, 2017

Looks good to me and seems safe; happy to merge when tests pass.

@jlstevens
Copy link
Contributor

@jlstevens jlstevens commented Mar 23, 2017

Looks good to me as well. Merging.

@jlstevens jlstevens merged commit ea02488 into master Mar 23, 2017
4 checks passed
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 decreased (-0.01%) to 77.435%
Details
@philippjfr
s3-reference-data-cache Test data is cached.
Details
@jbednar jbednar deleted the quadmesh_construct branch Mar 24, 2017
@stephanecollot
Copy link

@stephanecollot stephanecollot commented May 8, 2017

That looks great!

Unfortunately I didn't succeed to make it work in my notebook. Could you show us the imports that are loading 'datashade' and 'aggregate'?
Also, is it possible to make it work for multiple time series?

Thanks for your help

@jbednar
Copy link
Member

@jbednar jbednar commented May 8, 2017

You can see how to use it in https://anaconda.org/jbednar/holoviews_datashader , which shows all required imports, and also shows how to work with multiple plots. This all requires conda install -c ioam holoviews.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants