Spaces:
Runtime error
Runtime error
Commit
·
3412472
1
Parent(s):
caab32e
Update app.py
Browse files
app.py
CHANGED
@@ -178,13 +178,13 @@ def tweets_localidad(buscar_localidad):
|
|
178 |
centre_circle = plt.Circle((0,0),0.70,fc='white')
|
179 |
fig = plt.gcf()
|
180 |
fig.gca().add_artist(centre_circle)
|
181 |
-
fig.set_size_inches(
|
182 |
|
183 |
|
184 |
# Equal aspect ratio ensures that pie is drawn as a circle
|
185 |
ax1.axis('equal')
|
186 |
plt.tight_layout()
|
187 |
-
st.pyplot()
|
188 |
st.set_option('deprecation.showPyplotGlobalUse', False)
|
189 |
|
190 |
except AttributeError:
|
|
|
178 |
centre_circle = plt.Circle((0,0),0.70,fc='white')
|
179 |
fig = plt.gcf()
|
180 |
fig.gca().add_artist(centre_circle)
|
181 |
+
fig.set_size_inches(4, 2)
|
182 |
|
183 |
|
184 |
# Equal aspect ratio ensures that pie is drawn as a circle
|
185 |
ax1.axis('equal')
|
186 |
plt.tight_layout()
|
187 |
+
st.pyplot(fig)
|
188 |
st.set_option('deprecation.showPyplotGlobalUse', False)
|
189 |
|
190 |
except AttributeError:
|