I can’t change the size of a picture - Matplotlib

Asked

Viewed 16 times

0

I need to create a figure in bars, I’m trying to increase the size, as follows:

plt.figure(figsize=(8,8))
plt.bar(df_nacoes_ano)
plt.show()

But I get the following message:

TypeError: bar() missing 1 required positional argument: 'height'

I tried to insert the height but I have not yet succeeded in increasing the figure.

What can I do??

  • 1

    The size of the figure is controlled by the argument figsize when calling plt.figure.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.