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

Integers formatted incorrectly in widgets #975

Closed
philippjfr opened this issue Nov 6, 2016 · 1 comment
Closed

Integers formatted incorrectly in widgets #975

philippjfr opened this issue Nov 6, 2016 · 1 comment
Assignees
Milestone

Comments

@philippjfr
Copy link
Member

philippjfr commented Nov 6, 2016

In this example the formatter is not being applied, and additionally integers are being displayed as floats in the slider:

import numpy as np
import holoviews

for key in holoviews.Dimension.type_formatters:
    holoviews.Dimension.type_formatters[key] = lambda x: '1'

arrays = [np.random.randn(10, 10) for i in range(5)]
holoviews.HoloMap({i: holoviews.Image(arrays[i]) for i in range(5)}, kdims=['test'])
@philippjfr
Copy link
Member Author

We have now defined default formatters for integers.

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

No branches or pull requests

1 participant