Skip to content

Commit

Permalink
With new title
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Nov 2, 2024
1 parent e452d06 commit 96ab570
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/daily_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,11 @@ 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"{plot_type} {readings} Last Updated: {now.strftime('%Y-%m-%d %H:%M')}", y=y)
plot_suptitle = f"Hourly overview updated at {now.strftime('%Y-%m-%d %H:%M')}\n"
plot_suptitle += f"{readings} species, {df_plt_today.shape[0]} detections today"
plt.suptitle(plot_suptitle, y=y)
f.tight_layout()
top = 1 - 40 / (height * 100)
top = 1 - 50 / (height * 100)
f.subplots_adjust(left=0.2, right=0.9, top=top, wspace=0)

# Save combined plot
Expand Down

0 comments on commit 96ab570

Please sign in to comment.