From 9ad6ed4392a09f20e8bd69416234a518a255248f Mon Sep 17 00:00:00 2001 From: frederik Date: Mon, 15 Apr 2024 17:03:30 +0200 Subject: [PATCH] fix warning and cleanup --- scripts/daily_plot.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/daily_plot.py b/scripts/daily_plot.py index 2ce55d2..53b8900 100755 --- a/scripts/daily_plot.py +++ b/scripts/daily_plot.py @@ -38,8 +38,9 @@ def show_values_on_bars(ax, label): for i, p in enumerate(ax.patches): x = p.get_x() + p.get_width() * 0.9 y = p.get_y() + p.get_height() / 2 - value = '{:.0%}'.format(label[i]) - # Uncomment for Species Count Total + # Species confidence + # value = '{:.0%}'.format(label.iloc[i]) + # Species Count Total value = '{:n}'.format(p.get_width()) bbox = {'facecolor': 'lightgrey', 'edgecolor': 'none', 'pad': 1.0} ax.text(x, y, value, bbox=bbox, ha='center', va='center', size=9, color='darkgreen')