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

Skip to content

Commit 6e410db

Browse files
committed
FIX: make robust to units
1 parent aa6dfaa commit 6e410db

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,7 +2224,6 @@ def bar(self, x, height, width=0.8, bottom=None, *, align="center",
22242224
else:
22252225
raise ValueError('invalid orientation: %s' % orientation)
22262226

2227-
22282227
# lets do some conversions now since some types cannot be
22292228
# subtracted uniformly
22302229
if self.xaxis is not None:
@@ -2244,7 +2243,6 @@ def bar(self, x, height, width=0.8, bottom=None, *, align="center",
22442243
# Make args iterable too.
22452244
np.atleast_1d(x), height, width, y, linewidth)
22462245

2247-
22482246
# Now that units have been converted, set the tick locations.
22492247
if orientation == 'vertical':
22502248
tick_label_axis = self.xaxis

0 commit comments

Comments
 (0)