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

Add apply_when operation #4289

Merged
merged 1 commit into from
Mar 13, 2020
Merged

Add apply_when operation #4289

merged 1 commit into from
Mar 13, 2020

Conversation

philippjfr
Copy link
Member

A helper function that allows applying an operation if the data in the current viewport matches some user defined predicate, e.g. this allows switching between datashaded and non-datashaded views depending on the zoom level

apply_when(hv.Points(np.random.randn(10000, 2)), operation=datashade, predicate=lambda p: len(p) > 1000)

apply_when

@philippjfr philippjfr merged commit d5912c2 into master Mar 13, 2020
@philippjfr philippjfr deleted the philippjfr/apply_when branch April 25, 2022 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant