21cmfast / 21cmFAST

Official repository for 21cmFAST: a code for generating fast simulations of the cosmological 21cm signal
MIT License
58 stars 37 forks source link

[BUG] module 'matplotlib.pyplot' has no attribute 'register_cmap' #407

Closed flomertens closed 2 months ago

flomertens commented 2 months ago

register_cmap() is now deprecated in latest matplotlib version (https://matplotlib.org/stable/api/prev_api_changes/api_changes_3.9.0.html), matplotlib.colormaps.register should be used instead.

To Reproduce: Steps to reproduce the behavior:

  1. Install latest matplotlib version
  2. Run 21cmfast
steven-murray commented 2 months ago

Thanks @flomertens -- I have actually addressed this in #321 but there are some other changes there also that are taking longer to review. I'll make a PR with just this fix to get it merged (because it really just breaks things...)