Spaces:
Runtime error
Runtime error
Commit
·
38b5c86
1
Parent(s):
cb408d3
Update app.py
Browse files
app.py
CHANGED
@@ -181,10 +181,10 @@ def tweets_localidad(buscar_localidad):
|
|
181 |
|
182 |
colores=["#EE3555","#aae977"]
|
183 |
fig, ax = plt.subplots()
|
184 |
-
fig.set_size_inches(
|
185 |
-
plt.pie(resultado,labels=resultado.index,autopct=autopct_fun(resultado),colors=colores, textprops={'fontsize':
|
186 |
-
ax.set_title("Porcentajes por Categorias", fontsize=
|
187 |
-
plt.rcParams.update({'font.size':
|
188 |
ax.legend()
|
189 |
# Muestra el gráfico
|
190 |
plt.show()
|
|
|
181 |
|
182 |
colores=["#EE3555","#aae977"]
|
183 |
fig, ax = plt.subplots()
|
184 |
+
fig.set_size_inches(2,2)
|
185 |
+
plt.pie(resultado,labels=resultado.index,autopct=autopct_fun(resultado),colors=colores, textprops={'fontsize': 8})
|
186 |
+
ax.set_title("Porcentajes por Categorias", fontsize=8, fontweight="bold")
|
187 |
+
plt.rcParams.update({'font.size':5, 'font.weight':'bold'})
|
188 |
ax.legend()
|
189 |
# Muestra el gráfico
|
190 |
plt.show()
|