Last active
May 15, 2020 00:58
-
-
Save paulaleite/c732bd85f0eb483d72c433ba36edde38 to your computer and use it in GitHub Desktop.
Adicionando o próprio gráfico
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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