YchKhan commited on
Commit
bd38b84
1 Parent(s): 83736e3

Update chart_generation.py

Browse files
Files changed (1) hide show
  1. 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(ax.patches):
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()