nansencenter / nansat

Scientist friendly Python toolbox for processing 2D satellite Earth observation data.
http://nansat.readthedocs.io
GNU General Public License v3.0
182 stars 66 forks source link

MatplotlibDeprecationWarning: register_cmap #481

Closed akorosov closed 4 years ago

akorosov commented 4 years ago

Recently Matlplotlib started to give the following warning:

/data1/antonk/miniconda/envs/sios_icetype/lib/python3.7/site-packages/nansat/utils.py:129: MatplotlibDeprecationWarning: Passing raw data via parameters data and lut to register_cmap() is deprecated since 3.3 and will become an error two minor releases later. Instead use: register_cmap(cmap=LinearSegmentedColormap(name, data, lut))

This small fix changes the way register_colormaps is called.