Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matplotlib deprecation warnings #452

Closed
poplarShift opened this issue Mar 28, 2020 · 6 comments
Closed

Matplotlib deprecation warnings #452

poplarShift opened this issue Mar 28, 2020 · 6 comments

Comments

@poplarShift
Copy link

import geoviews as gv
gv.extension('matplotlib')
gv.Points([])

is currently returning

_collections_abc.py:832: MatplotlibDeprecationWarning: 
The datapath rcparam was deprecated in Matplotlib 3.2.1 and will be removed two minor releases later.
  self[key] = other[key]
@mc51
Copy link

mc51 commented Mar 29, 2020

I can confirm this with this env: https://pastebin.com/TF28BgUz
and conda:


     active environment : geo2
    active env location : \Software\Anaconda3\envs\geo2
            shell level : 1
          conda version : 4.8.3
    conda-build version : 3.18.7
         python version : 3.6.8.final.0
       virtual packages :
       base environment : \Software\Anaconda3  (writable)
           channel URLs : https://conda.anaconda.org/pyviz/win-64
                          https://conda.anaconda.org/pyviz/noarch
                          https://conda.anaconda.org/conda-forge/win-64
                          https://conda.anaconda.org/conda-forge/noarch
                          https://repo.anaconda.com/pkgs/main/win-64
                          https://repo.anaconda.com/pkgs/main/noarch
                          https://repo.anaconda.com/pkgs/r/win-64
                          https://repo.anaconda.com/pkgs/r/noarch
                          https://repo.anaconda.com/pkgs/msys2/win-64
                          https://repo.anaconda.com/pkgs/msys2/noarch
               platform : win-64
             user-agent : conda/4.8.3 requests/2.23.0 CPython/3.6.8 Windows/10 Windows/10.0.16299
          administrator : False
             netrc file : None
           offline mode : False

@philippjfr
Copy link
Member

Weird, anyone have an idea what's triggering these? I'm not aware of anywhere in GeoViews that sets rcparams but may be wrong.

@poplarShift
Copy link
Author

Hah, nevermind. It's already in holoviews, no idea why I hadn't noticed it there before, thought I'd checked. Can you transfer this issue?

(Is this holoviz/holoviews#3766 coming back from the dead or did we simply never get rid of it?)

@philippjfr
Copy link
Member

I've not seen these warnings in HoloViews anymore. Could this be a cartopy issue?

@philippjfr
Copy link
Member

Easiest thing to do is probably just to stick a import traceback as tb; tb.print_stack() into the matplotlib file from where the warning is being raised.

@poplarShift
Copy link
Author

poplarShift commented Mar 30, 2020

Nope, it's definitely there in holoviews but you might have to force mpl to 3.2.1 (not 3.2.0).

https://matplotlib.org/3.2.1/api/prev_api_changes/api_changes_3.2.0.html#the-datapath-rcparam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants