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 b6bdcd1 commit f458fc4Copy full SHA for f458fc4
1 file changed
lib/matplotlib/ticker.py
@@ -695,8 +695,7 @@ def format_data_short(self, value):
695
if isinstance(value, Integral):
696
fmt = "%d"
697
else:
698
- if (hasattr(self.axis, '__name__') and
699
- self.axis.__name__ in ["xaxis", "yaxis"]):
+ if getattr(self.axis, "__name__", "") in ["xaxis", "yaxis"]:
700
if self.axis.__name__ == "xaxis":
701
axis_trf = self.axis.axes.get_xaxis_transform()
702
axis_inv_trf = axis_trf.inverted()
0 commit comments