From f1ec3f23644d81ab8a7c923aa10d128851a01a83 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sat, 2 Nov 2024 22:27:41 +0100 Subject: [PATCH] Cleaner look --- scripts/daily_plot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/daily_plot.py b/scripts/daily_plot.py index 5fba1814e..7a032c8c2 100755 --- a/scripts/daily_plot.py +++ b/scripts/daily_plot.py @@ -120,9 +120,8 @@ 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, 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()] @@ -142,6 +141,7 @@ def create_plot(df_plt_today, now, is_top=None): show_values_on_bars(axs[1], confmax) plot.set_yticklabels([]) + plot.set_yticks([]) plot.set(ylabel=None) plot.set(xlabel="Detections")