Skip to content

Commit

Permalink
Try lint E127
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Nov 2, 2024
1 parent f5e5fb7 commit 7096e64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/daily_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ def create_plot(df_plt_today, now, is_top=None):

# Generate confidence plot
df_confmax = (confmax * 100).to_frame(name='')
plot = sns.heatmap(df_confmax, annot=df_confmax.map(lambda x: f"{x:.0f} %"), annot_kws={"fontsize": 7},
fmt="", cmap=pal, square=False, cbar=False, linewidths=0.5, linecolor='Grey', ax=axs[0])
plot = sns.heatmap(df_confmax, annot=df_confmax.map(lambda x: f"{x:.0f} %"),
annot_kws={"fontsize": 7}, fmt="", cmap=pal, square=False,
cbar=False, linewidths=0.5, linecolor='Grey', ax=axs[0])

# Try plot grid lines between bars - problem at the moment plots grid lines on bars - want between bars
yticklabels = ['\n'.join(textwrap.wrap(ticklabel.get_text(), wrap_width(ticklabel.get_text()))) for ticklabel in plot.get_yticklabels()]
Expand Down

0 comments on commit 7096e64

Please sign in to comment.