holoviz / holoviz/hvplot

Spurious lines on violin plot

Open
#1,301 5 comments 0 reactions 0 assignees View on GitHub
upstream
Dominant language
Python
Stars
1.4k
Forks
124
Avg merge
1d 18h
Merged PRs (30d)
1

Description

Thanks for contacting us! Please read and follow these instructions carefully, then delete this introductory text to keep your issue easy to read. Note that the issue tracker is NOT the place for usage questions and technical assistance; post those at [Discourse](https://discourse.holoviz.org) instead. Issues without the required information below may be closed immediately.

#### ALL software version info
```
python 3.11.8 hab00c5b_0_cpython conda-forge
hvplot 0.9.2 pyhd8ed1ab_0 conda-forge
holoviews 1.18.3 pyhd8ed1ab_0 conda-forge
bokeh 3.3.4 pyhd8ed1ab_0 conda-forge
```
#### Description of expected behavior and the observed behavior
The violin plot occasionally produces spurious lines. The same data plotted with box is OK.

#### Complete, minimal, self-contained example code that reproduces the issue

Data file:
[bar.csv](https://github.com/holoviz/hvplot/files/14813272/bar.csv)

This is a stripped down large data file, with the minimal number of items I was able to reproduce this behaviour.
```
# code goes here between backticks
import pandas as pd
import hvplot.pandas
df = pd.read_csv('/tmp/bar.csv')
df.hvplot.violin(by='month')
df.hvplot.box(by='month')
```

#### Stack traceback and/or browser JavaScript console output

#### Screenshots or screencasts of the bug in action
![violin_plot](https://github.com/holoviz/hvplot/assets/40218891/d572a8a9-de12-46b7-ae9d-a42c5d569a3b)
![box_plot](https://github.com/holoviz/hvplot/assets/40218891/726aeda9-9dd3-4530-b846-42ddb9ba3035)

- [ ] I may be interested in making a pull request to address this

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.