bjornsturmberg / NumBAT

NumBAT, the Numerical Brillouin Analysis Tool, integrates electromagnetic and acoustic mode solvers to calculate the interactions of optical and acoustic waves in waveguides.
GNU General Public License v3.0
17 stars 13 forks source link

cannot import name 'griddata' from 'matplotlib.mlab' #5

Closed PengLiAdam closed 4 years ago

PengLiAdam commented 4 years ago

Hi All When I tried to run the tutriol, the error cannot import name 'griddata' from 'matplotlib.mlab' jumped out. I have searched about it and only found out that griddata was deprecated in the upgrated Matplotlib. Does anyone have idea about how to solve this issue please?

Thanks a lot for the help!

PengLiAdam commented 4 years ago

Hi All I have found out the solution to the question. mlab.griddata (use scipy.interpolate.griddata) More details are at https://matplotlib.org/3.1.0/api/api_changes.html