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

ErrorBars * Bars broken on matplotlib #4989

Open
douglas-raillard-arm opened this issue Jun 22, 2021 · 0 comments
Open

ErrorBars * Bars broken on matplotlib #4989

douglas-raillard-arm opened this issue Jun 22, 2021 · 0 comments

Comments

@douglas-raillard-arm
Copy link
Contributor

douglas-raillard-arm commented Jun 22, 2021

ALL software version info

holoviews: 1.14.4
jupyterlab: 2.3.1
bokeh: 2.3.2
matplotlib: 3.4.2

Description of expected behavior and the observed behavior

Error bars should be at the tip of the bars, not floating next to it.
Alignment is correct on bokeh but broken on matplotlib.

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

import holoviews as hv

hv.extension('matplotlib')
cats = ['a', 'b']
levels = [3, 4]

bars = hv.Bars(zip(cats, levels)).opts(alpha=1)
errors = hv.ErrorBars(zip(cats, levels, [0.5, 0.2], [1.5, 1]), vdims=['y', 'yerrneg', 'yerrpos'])
fig = bars * errors
fig

Screenshots or screencasts of the bug in action

With matplotlib:
image

With bokeh:
image

Note that bokeh error bar is hidden by the bar itself, but that's for another bug report: #1968

douglas-raillard-arm pushed a commit to douglas-raillard-arm/holoviews that referenced this issue Jul 16, 2021
Align the bars with the annotations such as ErrorBars or Labels.

Fixes holoviz#4989
douglas-raillard-arm pushed a commit to douglas-raillard-arm/holoviews that referenced this issue Jul 16, 2021
Align the bars with the annotations such as ErrorBars or Labels.

Fixes holoviz#4989
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

Successfully merging a pull request may close this issue.

1 participant