Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00165eb

Browse files
committed
Set sticky_edges correctly for negative height bar().
The patch correctly sets the sticky edge to 0 instead of -1 for `bar(0, height=-1)`.
1 parent eaf05e9 commit 00165eb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,12 +2113,6 @@ def make_iterable(x):
21132113

21142114
args = zip(left, bottom, width, height, color, edgecolor, linewidth)
21152115
for l, b, w, h, c, e, lw in args:
2116-
if h < 0:
2117-
b += h
2118-
h = abs(h)
2119-
if w < 0:
2120-
l += w
2121-
w = abs(w)
21222116
r = mpatches.Rectangle(
21232117
xy=(l, b), width=w, height=h,
21242118
facecolor=c,

0 commit comments

Comments
 (0)