On Python 3.12 it complains: `AttributeError: module 'matplotlib.cm' has no attribute 'register_cmap'`