Datashade prevents framewise normalization
See original GitHub issueALL software version info
holoviews: 1.14.1 bokeh: 2.2.3
Description of expected behavior and the observed behavior
Expected behavior
I would expect the axes of the plot to update for every frame, even when a plot is datashade
d.
Current behavior
The axes do not update when a plot is datashade
d. Notably, the exact same code below does work correctly if the datashade
line is commented out.
Complete, minimal, self-contained example code that reproduces the issue
import numpy as np
import holoviews as hv
from holoviews.operation.datashader import datashade
hv.extension("bokeh")
x = [np.random.normal(loc=m, size=10_000) for m in [0, 1]]
y = np.random.normal(size=10_000)
plots = {c: hv.Scatter(zip(x[c], y)) for c in [0, 1]}
datashade(
hv.HoloMap(plots, kdims=["Component"]).opts(framewise=True, axiswise=True)
)
Screenshots or screencasts of the bug in action
N.B.: Possible duplicate of #4396, but I wasn’t sure if it was the exact same. In any case this seemed like a more general version of the problem if it is indeed the same
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Y-axis is not updated on dropdown selection when I use ...
Just add .opts(framewise=True) to the result from hvplot, to make it normalize each frame independently in all cases:
Read more >FAQ — HoloViews v1.15.3
A: Where feasible, HoloViews defaults to normalizing axis ranges across all ... make each frame be normalized independently by changing framewise to True:....
Read more >pyviz/pyviz - Gitter
The raw data (bands) are not normalized (in the interval 0 - 10000). Is there a way I can avoid manually normalizing the...
Read more >Holoviews Changelog - pyup.io
through `datashade`, which rendered data all the way to RGB pixels and thus prevented many client-side Bokeh features like hover,
Read more >Interactivity — Datashader v0.14.3
Canvas().points(df,'x','y') hd.datashade(points) + hd.shade(hv. ... When using scalar aggregators like tf.count() , the normalization and colormapping of ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This was previously fixed but all the fixes we introduced caused other regressions. I’ll dig up the relevant issues/PRs when I get a chance.
@bbradbury I think you should be able to use a panel HoloViews pane to display the dynamicmap and force an update by setting the
object
parameter when you need it to redraw. Hope that points you in the right direction!