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 d9bf0be commit b6bdcd1Copy full SHA for b6bdcd1
1 file changed
lib/matplotlib/ticker.py
@@ -695,7 +695,8 @@ def format_data_short(self, value):
695
if isinstance(value, Integral):
696
fmt = "%d"
697
else:
698
- if self.axis.__name__ in ["xaxis", "yaxis"]:
+ if (hasattr(self.axis, '__name__') and
699
+ 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