Skip to content

Commit 6c3ee3c

Browse files
committed
Minor fix
1 parent 1d1a2c6 commit 6c3ee3c

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

proplot/ui.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -494,9 +494,9 @@ def subplots(
494494

495495
# Shared axes setup
496496
# 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
498498
for ax in axs:
499-
ax._share_setup()
499+
ax._auto_share_setup()
500500

501501
# Return figure and axes
502502
n = ncols if order == 'C' else nrows
@@ -659,17 +659,17 @@ def __getattr__(self, attr):
659659
elif all(callable(_) for _ in objs):
660660
@functools.wraps(objs[0])
661661
def _iterator(*args, **kwargs):
662-
ret = []
662+
result = []
663663
for func in objs:
664-
ret.append(func(*args, **kwargs))
664+
result.append(func(*args, **kwargs))
665665
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):
668668
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)
671671
else:
672-
return tuple(ret)
672+
return tuple(result)
673673
_iterator.__doc__ = inspect.getdoc(objs[0])
674674
return _iterator
675675

0 commit comments

Comments
 (0)