File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -494,9 +494,9 @@ def subplots(
494
494
495
495
# Shared axes setup
496
496
# TODO: Figure out how to defer this to drawtime in #50
497
- # For some reason just adding _share_setup () to draw() doesn't work
497
+ # For some reason just adding _auto_share_setup () to draw() doesn't work
498
498
for ax in axs :
499
- ax ._share_setup ()
499
+ ax ._auto_share_setup ()
500
500
501
501
# Return figure and axes
502
502
n = ncols if order == 'C' else nrows
@@ -659,17 +659,17 @@ def __getattr__(self, attr):
659
659
elif all (callable (_ ) for _ in objs ):
660
660
@functools .wraps (objs [0 ])
661
661
def _iterator (* args , ** kwargs ):
662
- ret = []
662
+ result = []
663
663
for func in objs :
664
- ret .append (func (* args , ** kwargs ))
664
+ result .append (func (* args , ** kwargs ))
665
665
if len (self ) == 1 :
666
- return ret [0 ]
667
- elif all (res is None for res in ret ):
666
+ return result [0 ]
667
+ elif all (res is None for res in result ):
668
668
return None
669
- elif all (isinstance (res , paxes .Axes ) for res in ret ):
670
- return SubplotsContainer (ret , n = self ._n , order = self ._order )
669
+ elif all (isinstance (res , paxes .Axes ) for res in result ):
670
+ return SubplotsContainer (result , n = self ._n , order = self ._order )
671
671
else :
672
- return tuple (ret )
672
+ return tuple (result )
673
673
_iterator .__doc__ = inspect .getdoc (objs [0 ])
674
674
return _iterator
675
675
You can’t perform that action at this time.
0 commit comments