Skip to content

Commit

Permalink
FIX: catplot with redundant hue assignment creates empty legend with …
Browse files Browse the repository at this point in the history
…title #3537
  • Loading branch information
abdulwaheedsoudagar committed Nov 3, 2023
1 parent fa7edd8 commit e32e02d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -3125,6 +3125,10 @@ def test_invalid_kind(self, long_df):
with pytest.raises(ValueError, match="Invalid `kind`: 'wrong'"):
catplot(long_df, kind="wrong")

def test_no_legend_with_auto(self):

g = catplot(self.df, x="g", y="y", hue="g", legend='auto')
assert g._legend is None

class TestBeeswarm:

Expand Down

0 comments on commit e32e02d

Please sign in to comment.