Skip to content

Commit

Permalink
More compact code
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored and Nachtzuster committed Nov 9, 2024
1 parent c39fc1d commit 071f60a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/daily_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,12 +118,9 @@ def create_plot(df_plt_today, now, is_top=None):
plot_type = "Bottom"
name = "Combo2"

# Generate colors dictionary
confmax_colors = dict(zip(confmax.index, colors))

# Generate frequency plot
plot = sns.countplot(y='Com_Name', hue='Com_Name', legend=False, data=df_plt_selection_today,
palette=confmax_colors, order=freq_order, ax=axs[0], edgecolor='lightgrey')
palette=dict(zip(confmax.index, colors)), order=freq_order, ax=axs[0], edgecolor='lightgrey')

# Prints Max Confidence on bars
show_values_on_bars(axs[0], confmax)
Expand Down

0 comments on commit 071f60a

Please sign in to comment.