I'm getting a matplotlib/colarmap warning when loading openPMD-beamphysics in plot.py file. Looks like this behavior may not be allowed in the future.
/Users/nneveu/Code/anaconda3/envs/lume/lib/python3.7/site-packages/pmd_beamphysics/plot.py:13: MatplotlibDeprecationWarning: You are modifying the state of a globally registered colormap. In future versions, 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 = copy.copy(mpl.cm.get_cmap("viridis"))
cmap.set_under('white')
I'm getting a matplotlib/colarmap warning when loading openPMD-beamphysics in
plot.py
file. Looks like this behavior may not be allowed in the future.