Skip to content

Commit 3218c2a

Browse files
committed
Change refs from panelspace --> panelpad
1 parent fdfe042 commit 3218c2a

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

proplot/axes.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ def colorbar(self, *args, loc=None, pad=None,
907907
For outer colorbars only. The space between the colorbar and the
908908
main axes. Units are interpreted by `~proplot.utils.units`.
909909
When :rcraw:`tight` is ``True``, this is adjusted automatically.
910-
Otherwise, the default is :rc:`subplots.panelspace`.
910+
Otherwise, the default is :rc:`subplots.panelpad`.
911911
frame, frameon : bool, optional
912912
For inset colorbars, indicates whether to draw a "frame", just
913913
like `~matplotlib.axes.Axes.legend`. Default is
@@ -1128,7 +1128,7 @@ def legend(self, *args, loc=None, width=None, space=None, **kwargs):
11281128
For outer legends only. The space between the axes and the legend
11291129
box. Units are interpreted by `~proplot.utils.units`.
11301130
When :rcraw:`tight` is ``True``, this is adjusted automatically.
1131-
Otherwise, the default is :rc:`subplots.panelspace`.
1131+
Otherwise, the default is :rc:`subplots.panelpad`.
11321132
11331133
Other parameters
11341134
----------------
@@ -1350,7 +1350,7 @@ def panel_axes(self, side, **kwargs):
13501350
space : float or str or list thereof, optional
13511351
Empty space between the main subplot and the panel.
13521352
When :rcraw:`tight` is ``True``, this is adjusted automatically.
1353-
Otherwise, the default is :rc:`subplots.panelspace`.
1353+
Otherwise, the default is :rc:`subplots.panelpad`.
13541354
share : bool, optional
13551355
Whether to enable axis sharing between the *x* and *y* axes of the
13561356
main subplot and the panel long axes for each panel in the stack.

proplot/subplots.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,7 +1606,7 @@ def colorbar(self, *args,
16061606
The space between the main subplot grid and the colorbar, or the
16071607
space between successively stacked colorbars. Units are interpreted
16081608
by `~proplot.utils.units`. By default, this is determined by
1609-
the "tight layout" algorithm, or is :rc:`subplots.panelspace`
1609+
the "tight layout" algorithm, or is :rc:`subplots.panelpad`
16101610
if "tight layout" is off.
16111611
width : float or str, optional
16121612
The colorbar width. Units are interpreted by
@@ -1681,17 +1681,19 @@ def legend(self, *args,
16811681
space between successively stacked colorbars. Units are interpreted
16821682
by `~proplot.utils.units`. By default, this is adjusted
16831683
automatically in the "tight layout" calculation, or is
1684-
:rc:`subplots.panelspace` if "tight layout" is turned off.
1684+
:rc:`subplots.panelpad` if "tight layout" is turned off.
16851685
*args, **kwargs
16861686
Passed to `~proplot.axes.Axes.legend`.
16871687
"""
16881688
if 'ax' in kwargs:
1689-
return kwargs.pop('ax').legend(*args,
1690-
space=space, width=width, **kwargs)
1689+
return kwargs.pop('ax').legend(
1690+
*args, space=space, width=width, **kwargs
1691+
)
16911692
else:
1692-
ax = self._add_figure_panel(loc,
1693-
space=space, width=width, span=span,
1694-
row=row, col=col, rows=rows, cols=cols)
1693+
ax = self._add_figure_panel(
1694+
loc, space=space, width=width, span=span,
1695+
row=row, col=col, rows=rows, cols=cols
1696+
)
16951697
return ax.legend(*args, loc='_fill', **kwargs)
16961698

16971699
def save(self, filename, **kwargs):

0 commit comments

Comments
 (0)