From 6ed3b501101c94af0f8126caf445226de73f5663 Mon Sep 17 00:00:00 2001 From: Marcin-Ramotowski Date: Thu, 7 Aug 2025 19:51:01 +0200 Subject: [PATCH] Changed decimal separator to comma --- data_analysis.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data_analysis.py b/data_analysis.py index 3ef08be..e0f74b0 100644 --- a/data_analysis.py +++ b/data_analysis.py @@ -56,8 +56,9 @@ for i, group in enumerate(groupings): # Dodanie wartości nad słupkami for bar in bars: yval = bar.get_height() - plt.text(bar.get_x() + bar.get_width()/2.0, yval + max_val * 0.02, f'{yval:.1f}', - ha='center', va='bottom', fontsize=9) + label = f'{yval:.1f}'.replace('.', ',') # <-- tutaj zamiana kropki na przecinek + plt.text(bar.get_x() + bar.get_width()/2.0, yval + max_val * 0.02, label, + ha='center', va='bottom', fontsize=9) plt.tight_layout() plt.savefig(f"{output_folder}/mean_times_{i}.png")