Skip to content

Commit

Permalink
Refactor generate_plot function to handle facet_row and facet_col gro…
Browse files Browse the repository at this point in the history
…ups properly
  • Loading branch information
adkinsrs committed Aug 12, 2024
1 parent 1679f28 commit 8665c0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gear/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,8 +485,8 @@ def generate_plot(df, x=None, y=None, z=None, facet_row=None, facet_col=None,
# Make faceted plot
fig = make_subplots(rows=num_rows
, cols=num_cols
, row_titles=facet_row_groups
, column_titles=facet_col_groups
, row_titles=list(facet_row_groups)
, column_titles=list(facet_col_groups)
, x_title=x_title if x_title else None
, y_title=y_title if y_title else None
)
Expand Down

0 comments on commit 8665c0c

Please sign in to comment.