Skip to content

Commit

Permalink
Remove legend_func class attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom committed Sep 11, 2023
1 parent 40a6365 commit 3b2d70b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions seaborn/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ def _add_axis_labels(self, ax, default_x="", default_y=""):
ax.set_ylabel(self.variables.get("y", default_y), visible=y_visible)

def add_legend_data(
self, ax, func=None, common_kws=None, attrs=None, semantic_kws=None,
self, ax, func, common_kws=None, attrs=None, semantic_kws=None,
):
"""Add labeled artists to represent the different plot semantics."""
verbosity = self.legend
Expand Down Expand Up @@ -1247,9 +1247,6 @@ def update(var_name, val_name, **kws):
update, var, verbosity, title, title_kws, names, semantic_kws.get(var),
)

if func is None:
func = self._legend_func

legend_data = {}
legend_order = []

Expand Down
1 change: 0 additions & 1 deletion seaborn/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ class _CategoricalPlotter(VectorPlotter):
wide_structure = {"x": "@columns", "y": "@values"}
flat_structure = {"y": "@values"}

_legend_func = "scatter"
_legend_attributes = ["color"]

def __init__(
Expand Down

0 comments on commit 3b2d70b

Please sign in to comment.