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

Empty Box-Whisker plot with the Matplotlib backend when vdims has NaNs #5120

Closed
maximlt opened this issue Nov 9, 2021 · 3 comments · Fixed by #5450
Closed

Empty Box-Whisker plot with the Matplotlib backend when vdims has NaNs #5120

maximlt opened this issue Nov 9, 2021 · 3 comments · Fixed by #5450
Labels
tag: backend: mpl tag: hvplot Issue also been asked in hvplot type: bug Something isn't correct or isn't working
Milestone

Comments

@maximlt
Copy link
Member

maximlt commented Nov 9, 2021

The following snippet correctly returns a Box-Whisker plot grouped by carrier with the Bokeh backend but just returns an empty plot with the matplotlib backend.

import holoviews as hv
from hvplot.sample_data import us_crime, airline_flights

flights = airline_flights.to_dask().persist()
flight_subset = flights[flights.carrier.isin(['AA', 'US', 'OH'])]

ds = hv.Dataset(flight_subset, kdims=['carrier'], vdims=['depdelay'])
hv.BoxWhisker(ds)

image

Note that this has nothing to do with Dask, since adding flight_subset = flight_subset.compute() has no effect.

I've done some exploration and found out that the depdelay column has NaNs values, replacing them with 0 (or any float) fixes the issue.

@philippjfr
Copy link
Member

Fixed by #5135

@philippjfr philippjfr added this to the 1.14.7 milestone Nov 16, 2021
@maximlt
Copy link
Member Author

maximlt commented Feb 22, 2022

Reopening this 1.14.8. hasn't solved this issue.

@maximlt maximlt reopened this Feb 22, 2022
@maximlt maximlt modified the milestones: 1.14.7, 1.14.9 Feb 23, 2022
@maximlt maximlt added the tag: hvplot Issue also been asked in hvplot label Mar 2, 2022
@jbednar jbednar modified the milestones: 1.14.9, 1.14.10 Jun 21, 2022
@jlstevens jlstevens modified the milestones: 1.15.0, 1.15.1 Aug 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
tag: backend: mpl tag: hvplot Issue also been asked in hvplot type: bug Something isn't correct or isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants