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

BoxWhisker doesn't show outliers depending on vdim name #5431

Closed
BMM3 opened this issue Sep 8, 2022 · 2 comments · Fixed by #6169
Closed

BoxWhisker doesn't show outliers depending on vdim name #5431

BMM3 opened this issue Sep 8, 2022 · 2 comments · Fixed by #6169
Labels
type: bug Something isn't correct or isn't working

Comments

@BMM3
Copy link

BMM3 commented Sep 8, 2022

Packages

Python 3.9.7
holoviews 1.15.0
jupyterlab 3.4.4
bokeh 2.4.3
datashader 0.14.1

Description

The BoxWhisker doesn't seem to show the outliers when there is a space or a bracket in the name of the data.
The y limits are still set as if the outliers are included, but the outliers are not shown.
Only the y-axis name has an influence, the x-axis name can have spaces or brackets without having an effect on the outliers.

Example

import holoviews as hv
import pandas as pd

df = pd.DataFrame({'data':  [1,2,4,5,2,3,3,2,20,34],
                   'data 2':[1,2,4,5,2,3,3,2,20,34],
                   'data[': [1,2,4,5,2,3,3,2,20,34],
                   'x':     [1,1,1,1,1,1,1,1,1,1]})

(hv.BoxWhisker(df, 'x', 'data', label='data')+
 hv.BoxWhisker(df, 'x', 'data 2', label='data 2')+
 hv.BoxWhisker(df, 'x', 'data[', label='data[')+
 hv.BoxWhisker(df, 'x[', 'data', label='x['))

Screenshots

image

@hoxbro
Copy link
Member

hoxbro commented Sep 8, 2022

Get the following warning when running in a notebook.

... Current lengths: ('data 2', 2), ('data_2', 0), ('index', 2)
... Current lengths: ('data[', 2), ('data_left_square_bracket', 0), ('index', 2)

It looks like the name of some of the data is being wrongfully sanitized.

@hoxbro hoxbro added the type: bug Something isn't correct or isn't working label Sep 8, 2022
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
type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants