From d22035262e5b312652f98431a163de6695b79003 Mon Sep 17 00:00:00 2001 From: adkinsrs Date: Mon, 12 Aug 2024 19:29:01 -0400 Subject: [PATCH] I suck at doing things --- lib/gear/plotting.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/gear/plotting.py b/lib/gear/plotting.py index 6d197ba1..31398a43 100644 --- a/lib/gear/plotting.py +++ b/lib/gear/plotting.py @@ -482,6 +482,10 @@ def generate_plot(df, x=None, y=None, z=None, facet_row=None, facet_col=None, facet_col_indexes = {group: idx for idx, group in enumerate(facet_col_groups, start=1)} num_cols = len(facet_col_groups) if facet_col else 1 + # Ensure facet_row_groups and facet_col_groups elements are cast as strings + facet_row_groups = [str(group) for group in facet_row_groups] + facet_col_groups = [str(group) for group in facet_col_groups] + # Make faceted plot fig = make_subplots(rows=num_rows , cols=num_cols