Skip to content

Commit fd5647b

Browse files
committed
FIX: bar mixed units, allow ValueError as well
1 parent 6b3c015 commit fd5647b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2057,7 +2057,7 @@ def _convert_dx(dx, x0, xconv, convert):
20572057
dx = [convert(x0 + ddx) - x for ddx in dx]
20582058
if delist:
20592059
dx = dx[0]
2060-
except (TypeError, AttributeError) as e:
2060+
except (TypeError, AttributeError, ValueError) as e:
20612061
# but doesn't work for 'string' + float, so just
20622062
# see if the converter works on the float.
20632063
dx = convert(dx)

0 commit comments

Comments
 (0)