Skip to content
Merged
Changes from 1 commit
Commits
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
Add theme update to Plot.clone and remove outdated todo
  • Loading branch information
mwaskom committed Aug 4, 2022
commit 1562c2f7701f90935d73ed27c841906a59f17029
6 changes: 3 additions & 3 deletions seaborn/_core/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ def __init__(
raise TypeError(err)

self._data = PlotData(data, variables)

self._layers = []

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

new._scales.update(self._scales)
new._labels.update(self._labels)
new._limits.update(self._limits)
new._labels.update(self._labels)
new._theme.update(self._theme)

new._facet_spec.update(self._facet_spec)
new._pair_spec.update(self._pair_spec)
Expand Down Expand Up @@ -616,8 +618,6 @@ def label(self, *, title=None, **variables: str | Callable[[str], str]) -> Plot:
When using a single subplot, `title=` sets its title.

"""
# TODO should col=... add a "label" to the facet titles?
# How does this interact with title=...?
new = self._clone()
if title is not None:
new._labels["title"] = title
Expand Down