Spaces:
Runtime error
Runtime error
Commit
·
ca81fbf
1
Parent(s):
854da6e
Update app.py
Browse files
app.py
CHANGED
@@ -165,10 +165,10 @@ def tweets_localidad(buscar_localidad):
|
|
165 |
resultado=df.groupby('Prediccion')['Probabilidad'].sum()
|
166 |
colores=["#aae977","#EE3555"]
|
167 |
fig, ax = plt.subplots()
|
168 |
-
fig.set_size_inches(
|
169 |
-
plt.pie(resultado,labels=resultado.index,autopct='%1.1f%%',colors=colores,
|
170 |
-
ax.set_title("Porcentajes por Categorias", fontsize=
|
171 |
-
plt.rcParams.update({'font.size':
|
172 |
ax.legend()
|
173 |
# Muestra el gráfico
|
174 |
plt.show()
|
|
|
165 |
resultado=df.groupby('Prediccion')['Probabilidad'].sum()
|
166 |
colores=["#aae977","#EE3555"]
|
167 |
fig, ax = plt.subplots()
|
168 |
+
fig.set_size_inches(3, 3)
|
169 |
+
plt.pie(resultado,labels=resultado.index,autopct='%1.1f%%',colors=colores, textprops={'fontsize': 4})
|
170 |
+
ax.set_title("Porcentajes por Categorias", fontsize=5, fontweight="bold")
|
171 |
+
plt.rcParams.update({'font.size':4, 'font.weight':'bold'})
|
172 |
ax.legend()
|
173 |
# Muestra el gráfico
|
174 |
plt.show()
|