Skip to content

Commit 293c529

Browse files
committed
FIX: bar mixed units, allow ValueError as well
FIX: make exception in bar for convert(x+dx) more liberal
1 parent 7b40990 commit 293c529

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
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 Exception:
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy