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

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

@philippjfr philippjfr added tag: API type: feature A major new feature labels Mar 23, 2017
@jbednar
Copy link
Member

jbednar commented Mar 23, 2017

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

@jlstevens
Copy link
Contributor

Looks good to me as well. Merging.

@stephanecollot
Copy link

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 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.

Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
tag: API type: feature A major new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants