Spaces:
Runtime error
Runtime error
Commit
·
34030e5
1
Parent(s):
78b04b7
Update app.py
Browse files
app.py
CHANGED
@@ -183,7 +183,7 @@ def tweets_localidad(buscar_localidad):
|
|
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': 5})
|
186 |
-
ax.set_title("Porcentajes por Categorias en la localidad"+buscar_localidad, fontsize=5, fontweight="bold")
|
187 |
plt.rcParams.update({'font.size':4, 'font.weight':'bold'})
|
188 |
ax.legend()
|
189 |
# Muestra el gráfico
|
|
|
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': 5})
|
186 |
+
ax.set_title("Porcentajes por Categorias en la localidad\n"+buscar_localidad.capitalize(), fontsize=5, fontweight="bold")
|
187 |
plt.rcParams.update({'font.size':4, 'font.weight':'bold'})
|
188 |
ax.legend()
|
189 |
# Muestra el gráfico
|