8000 Fixes · matplotlib/matplotlib@3579224 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3579224

Browse files
committed
Fixes
1 parent 5ace1ff commit 3579224

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2979,7 +2979,7 @@ def extract_err(err, data):
29792979
caplines.append(mlines.Line2D(ro, yo, marker='|',
29802980
**eb_cap_style))
29812981

2982-
if xlolims.any():
2982+
if xlolims.any() or len(noxlims) == 0:
29832983
yo, _ = xywhere(y, right, xlolims & everymask)
29842984
lo, ro = xywhere(x, right, xlolims & everymask)
29852985
barcols.append(self.hlines(yo, lo, ro, **eb_lines_style))
@@ -3018,7 +3018,7 @@ def extract_err(err, data):
30183018
# select points without upper/lower limits in y and
30193019
# draw normal errorbars for these points
30203020
noylims = ~(lolims | uplims)
3021-
if noylims.any():
3021+
if noylims.any() or len(noylims) == 0:
30223022
xo, _ = xywhere(x, lower, noylims & everymask)
30233023
lo, uo = xywhere(lower, upper, noylims & everymask)
30243024
barcols.append(self.vlines(xo, lo, uo, **eb_lines_style))

0 commit comments

Comments
 (0)
0