Compare commits
1 Commits
dev
...
c409dfb7d1
Author | SHA1 | Date | |
---|---|---|---|
c409dfb7d1 |
@ -56,8 +56,7 @@ for i, group in enumerate(groupings):
|
|||||||
# Dodanie wartości nad słupkami
|
# Dodanie wartości nad słupkami
|
||||||
for bar in bars:
|
for bar in bars:
|
||||||
yval = bar.get_height()
|
yval = bar.get_height()
|
||||||
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, f'{yval:.1f}',
|
||||||
plt.text(bar.get_x() + bar.get_width()/2.0, yval + max_val * 0.02, label,
|
|
||||||
ha='center', va='bottom', fontsize=9)
|
ha='center', va='bottom', fontsize=9)
|
||||||
|
|
||||||
plt.tight_layout()
|
plt.tight_layout()
|
||||||
|
Reference in New Issue
Block a user