Joshua1808 commited on
Commit
38b5c86
·
1 Parent(s): cb408d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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(4,4)
185
- plt.pie(resultado,labels=resultado.index,autopct=autopct_fun(resultado),colors=colores, textprops={'fontsize': 5})
186
- ax.set_title("Porcentajes por Categorias", fontsize=5, fontweight="bold")
187
- plt.rcParams.update({'font.size':4, 'font.weight':'bold'})
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()