Skip to content
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

AttributeError: module 'matplotlib.cm' has no attribute 'cmap_d' #83

Closed
chengzhuzhang opened this issue Nov 17, 2023 · 1 comment
Closed

Comments

@chengzhuzhang
Copy link

There is an AttributeError: module 'matplotlib.cm' has no attribute 'cmap_d' when running ILAMB v2.6. The relevant log I have as follows:

[INFO][0][confront][LeafAreaIndex/eafAreaIndex/AVHRR][20231012.v3alpha04_trigrid_bgc.piControl.chrysalis] Success
[DEBUG][0][WorkPost][LeafAreaIndex/AVHRR][20231012.v3alpha04_trigrid_bgc.piControl.chrysalis]
Traceback (most recent call last):
  File "/lcrc/soft/climate/e3sm-unified/base/envs/e3sm_unified_1.9.0_login/bin/ilamb-run", line 426, in WorkPost
    c.modelPlots(m)
  File "/lcrc/soft/climate/e3sm-unified/base/envs/e3sm_unified_1.9.0_login/lib/python3.10/site-packages/ILAMB/Confrontation.py", line 710, in modelPlots
    self._relationship(m)
  File "/lcrc/soft/climate/e3sm-unified/base/envs/e3sm_unified_1.9.0_login/lib/python3.10/site-packages/ILAMB/Confrontation.py", line 1153, in _relationship
    _plotDistribution(ref_dist[0],ref_dist[1],ref_dist[2],
  File "/lcrc/soft/climate/e3sm-unified/base/envs/e3sm_unified_1.9.0_login/lib/python3.10/site-packages/ILAMB/Confrontation.py", line 1003, in _plotDistribution
    cmap = 'plasma' if 'plasma' in plt.cm.cmap_d else 'summer')
AttributeError: module 'matplotlib.cm' has no attribute 'cmap_d'

I'm wondering if this is a bug specific for v2.6 and earlier?

Thank you!

@chengzhuzhang
Copy link
Author

It is confirmed that v2.7 resolved above issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant