Skip to content

Commit

Permalink
plots: fix count plot axis parameter
Browse files Browse the repository at this point in the history
Count plots don't need to define the y-axis, only the x-axis.
  • Loading branch information
hagau committed Aug 20, 2024
1 parent c96a3f7 commit 31812f5
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -876,12 +876,20 @@ def plot_catplot(self, df, x='v2x_rate', y='cbr', hue='moduleName', row='dcc', c
kwargs = self.set_plot_specific_options(plot_type, **kwargs)

logd(f'PlottingTask::plot_catplot: {df.columns=}')
grid = sb.catplot(data=df, x=x, y=y, row=row, col=column
, hue=hue
, kind=plot_type
# , legend_out=False
, **kwargs
)
if plot_type != 'count':
grid = sb.catplot(data=df, x=x, y=y, row=row, col=column
, hue=hue
, kind=plot_type
# , legend_out=False
, **kwargs
)
else:
grid = sb.catplot(data=df, x=x, row=row, col=column
, hue=hue
, kind=plot_type
# , legend_out=False
, **kwargs
)

grid = self.set_grid_defaults(grid)

Expand Down

0 comments on commit 31812f5

Please sign in to comment.