spectralpython / spectral

Python module for hyperspectral image processing
MIT License
563 stars 138 forks source link

Matplotlib Deprecation Warning: imshow #118

Closed pythonic2020 closed 3 years ago

pythonic2020 commented 3 years ago

I intermittently get this warning

C:\Users\me\Miniconda3\envs\py38\lib\site-packages\spectral\graphics\spypylab.py:27: MatplotlibDeprecationWarning: 
The keymap.all_axes rcparam was deprecated in Matplotlib 3.3 and will be removed two minor releases later.
  mpl.rcParams['keymap.all_axes'] = ''

after invoking imshow using this code in a Jupyter notebook, Python 3.8.6, matplotlib 3.3.3:

from spectral.graphics.spypylab import imshow 

view = imshow(data=cube1, bands=(76, 83, 92), origin='upper', stretch=(0.08, 0.98),
              source=cube1, title='Cube - Bands 76-83-92/RGB', figsize=(6, 6))

The warning does not effect imshow function as far as I can tell.

cl1314 commented 3 years ago

have you solved this problem?

tboggs commented 3 years ago

@cl1314 yes it is fixed in GitLab. It will be included in the next release, probably in the next few days.