From af9afd0da56e372088ac1fa2a8154fab8c9f36b6 Mon Sep 17 00:00:00 2001 From: ckmah Date: Mon, 15 Apr 2024 16:20:24 -0700 Subject: [PATCH] fix duplicate hue cols --- bento/plotting/_plotting.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bento/plotting/_plotting.py b/bento/plotting/_plotting.py index f91311a..02e0125 100644 --- a/bento/plotting/_plotting.py +++ b/bento/plotting/_plotting.py @@ -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)]