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

mlab.griddata deprecation! #40

Open
fadikar opened this issue Feb 7, 2020 · 5 comments
Open

mlab.griddata deprecation! #40

fadikar opened this issue Feb 7, 2020 · 5 comments

Comments

@fadikar
Copy link

fadikar commented Feb 7, 2020

ImportError: cannot import name 'griddata' from 'matplotlib.mlab'

@ustroetz
Copy link
Owner

Hi @fadikar, Thank you for reporting this bug. Could you please provide a little bit of sample code to reproduce the issue?

@MehdiSaffar
Copy link

I am having the same issue. The error happens on the import osrm directly, matplotlib version is 3.1.3

@DahnJ
Copy link

DahnJ commented Mar 12, 2020

The problem happens when you have matplotlib version 3.1 or later, instead of 2.2.4 as noted in the requirements. I fixed this by using scipy's griddata instead, i.e. replacing

from matplotlib.mlab import griddata

with

from scipy.interpolate import griddata

in the file osrm/extra.py

@neilfloow
Copy link

Just encountered this, thanks for the solutino @DahnJ

I see its in the master branch, is a new release to PyPi in the offing?

@hannesaddec
Copy link

last version of griddata call in https://docs.scipy.org/doc/scipy/reference/generated/scipy.interpolate.griddata.html has different syntax than currently in extra.py. PR upcoming

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

6 participants