question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Datashade prevents framewise normalization

See original GitHub issue

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

Current behavior The axes do not update when a plot is datashaded. 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

GaZj3lsR4H

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:open
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
philippjfrcommented, Feb 22, 2021

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.

0reactions
jlstevenscommented, May 23, 2022

@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!

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found