Issue
I am trying to use CenteredNorm but despite my matplotlib version being quite recent, it appears to not be available. Any clue of what can be the problem?
How can I check if it is recent enough?
EDIT: Keeping this question up just for others like I was who don't how to check for when a function was included in Matplotlib, or any other repo.
As @DeepSpace commented: "Sometimes it will say it right in the docs. In this case it did not, so I used "git blame" in the GitHub repo and saw that the commit that added it is tagged with 3.4.0: https://github.com/matplotlib/matplotlib/commit/4b2f1052252d103b7abb68cf536a18d1b14b1077 Me: "I don't know how to do git blame on a repo that is not sitting on my machine." @DeepSpace: "There is a "blame" button when viewing a file in GitHub UI"
Solution
Latest stable release is 3.4.2. A simple update will do it
Answered By - Piotr Nowakowski
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.