We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When trying to use the chloropleth function as in the docs, I get the following error:
"AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap'"
A google search reveals that as of Matplotlib 3.9, the command
"colorbarmap = plt.cm.get_cmap(cmap, len(boundaries))"
on line 89 of chloropleth.py is no longer valid syntax and should be replaced by
"colorbarmap = plt.get_cmap(cmap, len(boundaries))"
Making this change fixed the problem for me.
(See this page for more: https://stackoverflow.com/questions/52251582/matplotlib-has-no-attribute-cm-when-deploying-an-app.)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When trying to use the chloropleth function as in the docs, I get the following error:
"AttributeError: module 'matplotlib.cm' has no attribute 'get_cmap'"
A google search reveals that as of Matplotlib 3.9, the command
"colorbarmap = plt.cm.get_cmap(cmap, len(boundaries))"
on line 89 of chloropleth.py is no longer valid syntax and should be replaced by
"colorbarmap = plt.get_cmap(cmap, len(boundaries))"
Making this change fixed the problem for me.
(See this page for more: https://stackoverflow.com/questions/52251582/matplotlib-has-no-attribute-cm-when-deploying-an-app.)
The text was updated successfully, but these errors were encountered: