Spaces:
GIZ
/
Running on CPU Upgrade

prashant commited on
Commit
98418a5
1 Parent(s): 40debb1

plot error fix

Browse files
Files changed (1) hide show
  1. appStore/sdg_analysis.py +1 -1
appStore/sdg_analysis.py CHANGED
@@ -126,7 +126,7 @@ def app():
126
  colors = plt.get_cmap('Blues')(np.linspace(0.2, 0.7, len(x)))
127
  # plot
128
  fig, ax = plt.subplots()
129
- ax.pie(x.count, colors=colors, radius=3, center=(4, 4),
130
  wedgeprops={"linewidth": 1, "edgecolor": "white"},
131
  frame=False,labels =list(x.SDG_name))
132
  # fig.savefig('temp.png', bbox_inches='tight',dpi= 100)
 
126
  colors = plt.get_cmap('Blues')(np.linspace(0.2, 0.7, len(x)))
127
  # plot
128
  fig, ax = plt.subplots()
129
+ ax.pie(x['count'], colors=colors, radius=3, center=(4, 4),
130
  wedgeprops={"linewidth": 1, "edgecolor": "white"},
131
  frame=False,labels =list(x.SDG_name))
132
  # fig.savefig('temp.png', bbox_inches='tight',dpi= 100)