Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3ae55e1

Browse files
authored
Merge pull request #14853 from anntzer/typo
Fix typo in set_adjustable check.
2 parents 18bc802 + 90e97af commit 3ae55e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1322,7 +1322,7 @@ def set_adjustable(self, adjustable, share=False):
13221322
else:
13231323
axs = [self]
13241324
if (adjustable == "datalim"
1325-
and any(getattr(ax.get_data_ratio, "__func__")
1325+
and any(getattr(ax.get_data_ratio, "__func__", None)
13261326
!= _AxesBase.get_data_ratio
13271327
for ax in axs)):
13281328
# Limits adjustment by apply_aspect assumes that the axes' aspect

0 commit comments

Comments
 (0)