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

DynamicMap doesn't use Dimension's default value if the value is 0 #4536

Closed
ruoyu0088 opened this issue Jul 28, 2020 · 1 comment · Fixed by #4537
Closed

DynamicMap doesn't use Dimension's default value if the value is 0 #4536

ruoyu0088 opened this issue Jul 28, 2020 · 1 comment · Fixed by #4537

Comments

@ruoyu0088
Copy link
Contributor

Holoviews 1.13.3

Here is the code:

import holoviews as hv
hv.extension('bokeh')

def f(a, b):
    x = [0, 1]
    y = [a, b]
    return hv.Curve((x, y))

dm = hv.DynamicMap(f, kdims=[
    hv.Dimension('a', range=(-3.0, 3.0), default=0.0),
    hv.Dimension('b', range=(-3.0, 3.0), default=0.0)
])

dm

the output plot is:

image

the value of a and b is 0, but the y axis of the line is -3. It uses the start value of the Dimension's range.

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant