Skip to content

Commit 6ad74b1

Browse files
committed
Rename p9GridSpec.layout to update_*
1 parent 6a4924a commit 6ad74b1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

plotnine/_mpl/gridspec.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ def _update_artists(self):
169169
for gs in self._nested_gridspecs:
170170
gs._update_artists()
171171

172-
def layout(self, gsparams: GridSpecParams):
172+
def update_params_and_artists(self, gsparams: GridSpecParams):
173173
"""
174-
Update the layout of the gridspec
174+
Update gridpspec params and the artists
175175
"""
176176
self.update(**asdict(gsparams))
177177
self._update_artists()

plotnine/_mpl/layout_manager/_engine.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def execute(self, fig: Figure):
4242
spaces = LayoutSpaces(self.plot)
4343

4444
gsparams = spaces.get_gridspec_params()
45-
self.plot.facet._panels_gridspec.layout(gsparams)
45+
self.plot.facet._panels_gridspec.update_params_and_artists(gsparams)
4646
spaces.items._adjust_positions(spaces)
4747

4848

@@ -83,5 +83,5 @@ def execute(self, fig: Figure):
8383
PlotnineWarning,
8484
)
8585
break
86-
plot.facet._panels_gridspec.layout(gsparams)
86+
plot.facet._panels_gridspec.update_params_and_artists(gsparams)
8787
spaces.items._adjust_positions(spaces)

0 commit comments

Comments
 (0)