Spaces:
Sleeping
Sleeping
Update chart_generation.py
Browse files- chart_generation.py +1 -1
chart_generation.py
CHANGED
@@ -26,7 +26,7 @@ def create_bar_plot(file, x_values, y_values):
|
|
26 |
plt.ylabel('Number of Contributions')
|
27 |
plt.title(f'Number of Contributions by {y_values} and {x_values}')
|
28 |
|
29 |
-
for i, bar in enumerate(
|
30 |
h = bar.get_height()
|
31 |
w = bar.get_width()
|
32 |
x = bar.get_x()
|
|
|
26 |
plt.ylabel('Number of Contributions')
|
27 |
plt.title(f'Number of Contributions by {y_values} and {x_values}')
|
28 |
|
29 |
+
for i, bar in enumerate(fig.patches):
|
30 |
h = bar.get_height()
|
31 |
w = bar.get_width()
|
32 |
x = bar.get_x()
|