Skip to content

Commit 1562c2f

Browse files
committed
Add theme update to Plot.clone and remove outdated todo
1 parent 2ff3e20 commit 1562c2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

seaborn/_core/plot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def __init__(
176176
raise TypeError(err)
177177

178178
self._data = PlotData(data, variables)
179+
179180
self._layers = []
180181

181182
self._scales = {}
@@ -249,8 +250,9 @@ def _clone(self) -> Plot:
249250
new._layers.extend(self._layers)
250251

251252
new._scales.update(self._scales)
252-
new._labels.update(self._labels)
253253
new._limits.update(self._limits)
254+
new._labels.update(self._labels)
255+
new._theme.update(self._theme)
254256

255257
new._facet_spec.update(self._facet_spec)
256258
new._pair_spec.update(self._pair_spec)
@@ -616,8 +618,6 @@ def label(self, *, title=None, **variables: str | Callable[[str], str]) -> Plot:
616618
When using a single subplot, `title=` sets its title.
617619
618620
"""
619-
# TODO should col=... add a "label" to the facet titles?
620-
# How does this interact with title=...?
621621
new = self._clone()
622622
if title is not None:
623623
new._labels["title"] = title

0 commit comments

Comments
 (0)