Skip to content

Commit

Permalink
Avoid adding new variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Nov 8, 2024
1 parent 9e450f6 commit ae3fb07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/daily_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def create_plot(df_plt_today, now, is_top=None):
plot.set(xlabel="Hour of Day")
# Set combined plot layout and titles
y = 1 - 8 / (height * 100)
plt.suptitle(f"Hourly overview for {date[:10]}\n{plot_type} {readings} species, {df_plt_today.shape[0]} detections today, updated {date[11:]}", y=y)
plt.suptitle(f"Hourly overview for {now.strftime('%Y-%m-%d')}\n{plot_type} {readings} species, {df_plt_today.shape[0]} detections today, updated {now.strftime('%H:%M')}", y=y)
f.tight_layout()
top = 1 - 40 / (height * 100)
f.subplots_adjust(left=0.125, right=0.9, top=top, wspace=0)
Expand Down

0 comments on commit ae3fb07

Please sign in to comment.