Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7359ece commit 45da1c5Copy full SHA for 45da1c5
1 file changed
lib/matplotlib/axis.py
@@ -1555,12 +1555,9 @@ def convert_units(self, x):
1555
# DecimalConverter may raise error, so check here to walk around.
1556
if munits.ConversionInterface.is_numlike(x):
1557
return x
1558
- # Try convert again
1559
- try:
1560
- ret = self.converter.convert(x, self.units, self)
1561
- except Exception as e2:
1562
- raise munits.ConversionError('Failed to convert value(s) to '
1563
- f'axis units: {x!r}') from e2
+ # Otherwise, the conversion fails
+ raise munits.ConversionError('Failed to convert value(s) to '
+ f'axis units: {x!r}') from e
1564
return ret
1565
1566
def set_units(self, u):
0 commit comments