-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
matplotlib plt.bar() function wrong signature? Version? #1
Comments
I am using 3.1.1. |
I have 3.2.1 and your code does not work. I am surprised that it allowed you to put Timestamp in the X axis. pyplot.bar does not allow this. Also, the named parameters did not work, I had to remove them and l use positional parameters because the new implementation of pyplot.bar is like the following:
You can notice that there is no This code works for me: I got inspired by your code and I created a code for Canada. Although it is substantially changed I will credit you for the initial code in the header. Thanks. I hope to post it soon on github.com and I hope to add some analysis and predictions based on different scenarios |
I suggest trying something like the code bleow that beside making it version agnostic will also simply code repetitions in your ranking method
then call in the code like this
_, axs = plt.subplots(2, 2, figsize=(15, 9))
|
I am unable to perform plots due to different bar() function signature.
According to this https://matplotlib.org/3.2.1/api/_as_gen/matplotlib.pyplot.bar.html the bar()
has a different implementation that what you are using.
Do you know what version are you using? Thanks
The text was updated successfully, but these errors were encountered: