Skip to content

Commit

Permalink
Align Bars with annotations on matplotlib
Browse files Browse the repository at this point in the history
Align the bars with the annotations such as ErrorBars or Labels.

Fixes holoviz#4989
  • Loading branch information
DouglasRaillard committed Jul 16, 2021
1 parent 6449bb4 commit 631babe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion holoviews/plotting/mpl/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,7 @@ def _create_bars(self, axis, element, ranges, style):
yalign = -0.04 if cdim and self.multi_level else 0
xticks.append((gidx+0.5, grp_label, yalign))
for cidx, cat in enumerate(values.get('category', [None])):
xpos = gidx+self.bar_padding+(cidx*width)
xpos = gidx+self.bar_padding+(cidx*width) - 0.5
if cat is not None:
label = cdim.pprint_value(cat)
sel_key[cdim.name] = [cat]
Expand Down

0 comments on commit 631babe

Please sign in to comment.