holoviz / holoviews

With Holoviews, your data visualizes itself.
https://holoviews.org
BSD 3-Clause "New" or "Revised" License
2.7k stars 402 forks source link

DynamicMap iterates through all values in kdims when using axiswise normalization #2373

Closed JouriB closed 6 years ago

JouriB commented 6 years ago

I noticed DynamicMap sometimes iterates through all instances when axiswise normalization is used. See example below, print(x) tells me it is actually evaluating the function. Not entirely sure if this is a bug or can easily be avoided somehow.

%%opts Curve {+axiswise +framewise}

def plot(x):
    print(x)
    xx = np.linspace(-x,x,101)
    p1 = hv.Curve(zip(xx,xx))   
    return p1+p1

vals = {'x': np.linspace(1,10,10)}
hv.DynamicMap(plot,kdims='x').redim.values(x=range(1,11)) #Run through all x, does normalize as expected
# hv.DynamicMap(plot,kdims='x').redim.range(x=(1,10)) #Only initializes x=1, but doesn´t normalize properly
github-actions[bot] commented 1 week ago

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