Skip to content

Commit

Permalink
I suck at doing things
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Aug 12, 2024
1 parent 8665c0c commit d220352
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/gear/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d220352

Please sign in to comment.