Skip to content

Commit

Permalink
Update specs from new methods in clone
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed Jul 14, 2022
1 parent 022e4bd commit b726628
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion seaborn/_core/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,10 @@ def _clone(self) -> Plot:
new._data = self._data

new._layers.extend(self._layers)

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

new._subplot_spec.update(self._subplot_spec)
new._facet_spec.update(self._facet_spec)
Expand Down Expand Up @@ -544,7 +547,7 @@ def scale(self, **scales: Scale) -> Plot:
"""
new = self._clone()
new._scales.update(**scales)
new._scales.update(scales)
return new

def limit(self, **limits: tuple[Any, Any]) -> Plot:
Expand Down

0 comments on commit b726628

Please sign in to comment.