Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b9667cf
Initial commit
lukelbd Dec 19, 2019
83ef32c
Merge branch 'master' into rc-cleanup-fixes
lukelbd Jan 6, 2020
e464a99
Move default props from .proplotrc --> rctools.py
lukelbd Jan 6, 2020
e760807
Improve rc_configurator getitem/setitem, add helper func
lukelbd Jan 6, 2020
d6b6020
Update get(), fill(), category(); add dict() and iterator methods
lukelbd Jan 6, 2020
a82dd68
Fix rc_configurator.context() bug
lukelbd Jan 6, 2020
dea6d94
Improve iter, contains, and string repr methods
lukelbd Jan 6, 2020
44a4bc9
Improve _loc_translate + _get_title_props, related cleanup
lukelbd Jan 7, 2020
424bc67
Remove Axes.context, update rc lookups, related cleanup
lukelbd Jan 7, 2020
8e7655e
Add x/ylinewidth, x/ygridcolor XYAxes.format kwargs
lukelbd Jan 7, 2020
25f7bd8
Fix rc lookups in other files
lukelbd Jan 7, 2020
77e406a
Remove Axes.context, add documented Axes.number prop
lukelbd Jan 7, 2020
61a45d4
Update changelog and index
lukelbd Jan 7, 2020
93c8aa5
Cleaner install instructions
lukelbd Jan 7, 2020
da123eb
Remove rc._init reference
lukelbd Jan 7, 2020
5b45522
Fix bug/conflict between ipython_* funcs and rc.__init__
lukelbd Jan 7, 2020
1bf78ce
Remove _getitem_mode assignment
lukelbd Jan 7, 2020
3c44865
Add _get_space function, simplify _panel_kwargs function
lukelbd Jan 7, 2020
3fb9a52
Rename _panel_kwargs --> _get_panelargs
lukelbd Jan 7, 2020
dba9f70
Use _get_space; remove refs to subplots.ylabspace, etc.
lukelbd Jan 7, 2020
fdfe042
Update default font sizes
lukelbd Jan 7, 2020
3218c2a
Change refs from panelspace --> panelpad
lukelbd Jan 7, 2020
1ab92ca
Remove subplots.ylabspace, etc. from configuration docs
lukelbd Jan 7, 2020
16ae44f
Fix _loc_translate bug
lukelbd Jan 7, 2020
6629efb
Remove panel_kw from colorbar/legend_wrapper
lukelbd Jan 7, 2020
ef33694
Update changelog
lukelbd Jan 7, 2020
20b9f5b
No longer change figure.dpi
lukelbd Jan 7, 2020
db78bc0
Fix rc.category bug, minor subplots bugs
lukelbd Jan 7, 2020
c57c7b0
Prefer closing brackets on new lines
lukelbd Jan 7, 2020
578aa8b
Better install instructions
lukelbd Jan 7, 2020
7acffb6
Update changelog
lukelbd Jan 7, 2020
8da19f5
Remove outdated cache=False ref, remove debug statement
lukelbd Jan 7, 2020
3ca9a02
Minor BasemapAxes bugfix
lukelbd Jan 7, 2020
22af8f9
Notebook examples formatting improvements
lukelbd Jan 7, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Change refs from panelspace --> panelpad
  • Loading branch information
lukelbd committed Jan 7, 2020
commit 3218c2a8357d2afebfa2d4e7fddaae3d3bfd3a40
6 changes: 3 additions & 3 deletions proplot/axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ def colorbar(self, *args, loc=None, pad=None,
For outer colorbars only. The space between the colorbar and the
main axes. Units are interpreted by `~proplot.utils.units`.
When :rcraw:`tight` is ``True``, this is adjusted automatically.
Otherwise, the default is :rc:`subplots.panelspace`.
Otherwise, the default is :rc:`subplots.panelpad`.
frame, frameon : bool, optional
For inset colorbars, indicates whether to draw a "frame", just
like `~matplotlib.axes.Axes.legend`. Default is
Expand Down Expand Up @@ -1128,7 +1128,7 @@ def legend(self, *args, loc=None, width=None, space=None, **kwargs):
For outer legends only. The space between the axes and the legend
box. Units are interpreted by `~proplot.utils.units`.
When :rcraw:`tight` is ``True``, this is adjusted automatically.
Otherwise, the default is :rc:`subplots.panelspace`.
Otherwise, the default is :rc:`subplots.panelpad`.

Other parameters
----------------
Expand Down Expand Up @@ -1350,7 +1350,7 @@ def panel_axes(self, side, **kwargs):
space : float or str or list thereof, optional
Empty space between the main subplot and the panel.
When :rcraw:`tight` is ``True``, this is adjusted automatically.
Otherwise, the default is :rc:`subplots.panelspace`.
Otherwise, the default is :rc:`subplots.panelpad`.
share : bool, optional
Whether to enable axis sharing between the *x* and *y* axes of the
main subplot and the panel long axes for each panel in the stack.
Expand Down
16 changes: 9 additions & 7 deletions proplot/subplots.py
Original file line number Diff line number Diff line change
Expand Up @@ -1606,7 +1606,7 @@ def colorbar(self, *args,
The space between the main subplot grid and the colorbar, or the
space between successively stacked colorbars. Units are interpreted
by `~proplot.utils.units`. By default, this is determined by
the "tight layout" algorithm, or is :rc:`subplots.panelspace`
the "tight layout" algorithm, or is :rc:`subplots.panelpad`
if "tight layout" is off.
width : float or str, optional
The colorbar width. Units are interpreted by
Expand Down Expand Up @@ -1681,17 +1681,19 @@ def legend(self, *args,
space between successively stacked colorbars. Units are interpreted
by `~proplot.utils.units`. By default, this is adjusted
automatically in the "tight layout" calculation, or is
:rc:`subplots.panelspace` if "tight layout" is turned off.
:rc:`subplots.panelpad` if "tight layout" is turned off.
*args, **kwargs
Passed to `~proplot.axes.Axes.legend`.
"""
if 'ax' in kwargs:
return kwargs.pop('ax').legend(*args,
space=space, width=width, **kwargs)
return kwargs.pop('ax').legend(
*args, space=space, width=width, **kwargs
)
else:
ax = self._add_figure_panel(loc,
space=space, width=width, span=span,
row=row, col=col, rows=rows, cols=cols)
ax = self._add_figure_panel(
loc, space=space, width=width, span=span,
row=row, col=col, rows=rows, cols=cols
)
return ax.legend(*args, loc='_fill', **kwargs)

def save(self, filename, **kwargs):
Expand Down