Skip to content

Instantly share code, notes, and snippets.

@paulaleite
Last active May 15, 2020 00:58
Show Gist options
  • Save paulaleite/c732bd85f0eb483d72c433ba36edde38 to your computer and use it in GitHub Desktop.
Save paulaleite/c732bd85f0eb483d72c433ba36edde38 to your computer and use it in GitHub Desktop.
Adicionando o próprio gráfico
# 4
fig, ax = plt.subplots(figsize=(6, 5), subplot_kw=dict(aspect="equal"))
# 5
ax.pie(gastos_mensais, autopct='%0.1f%%', pctdistance=1.15, colors=cores_grafico)
# 6
ax.legend(labels, title="Gastos", loc="center left",bbox_to_anchor=(1.25, 0, 0.5, 1))
# 7
ax.set_title("Gastos Mensais")
# 8
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment