Skip to content

Commit

Permalink
fix duplicate hue cols
Browse files Browse the repository at this point in the history
  • Loading branch information
ckmah committed Apr 15, 2024
1 parent 4bd0d28 commit af9afd0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bento/plotting/_plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ def _prepare_points_df(sdata, points_key, instance_key, sync, semantic_vars=None
vars = [v for v in semantic_vars if v is not None]
cols.extend(vars)

cols = list(set(cols))

if hue_order is not None:
points = points[points[hue].isin(hue_order)]

Expand Down

0 comments on commit af9afd0

Please sign in to comment.