0

enter image description here

import matplotlib.pyplot as plt

cidades = [city for city, df in mv_cidade.groupby('Loja')]

plt.bar(mv_cidade['Loja'], mv_cidade['Faturamento'])
plt.ylabel('Faturamento em milhões')
plt.xlabel('Loja (por Estado)')
plt.xticks(cidades, rotation= 'vertical', size= 9)

plt.show()

It's kinda simple. I just wanna know how to change the yticks (0.5, 1.0, 1.5) to something like (5, 10, 15, 20)

Can anyone help?

I've already tried to put the "original" values

plt.yticks([6480300, 6868600, 7060500, 7303000, 7441800, 13111300, 14087900, 14867800, 22098300])

that was the result

  • `ax.ticklabel_format(axis='y', useOffset=False, style='plain')` can be used to prevent scientific notation. – JohanC Dec 01 '22 at 22:13

0 Answers0