icecube / pisa

Monte Carlo-based data analysis
http://icecube.github.io/pisa/
Apache License 2.0
19 stars 49 forks source link

colormap warning #664

Closed philippeller closed 1 year ago

philippeller commented 3 years ago
pisa/core/map.py:674: MatplotlibDeprecationWarning: You are modifying the state of a globally registered colormap. This has been deprecated since 3.3 and in 3.6, you will not be able to modify a registered colormap in-place. To remove this warning, you can make a copy of the colormap first. cmap = mpl.cm.get_cmap("Spectral_r").copy()
  cmap_seq.set_bad(color=(0.0, 0.2, 0.0), alpha=1)