<p dir="ltr">If I remember correctly, we only recently stopped shipping our own copy of the Delaunay code. I'm not sure what the best solution is.</p>
<div class="gmail_quote">On Jan 25, 2014 3:30 AM, "Nathan Goldbaum" <<a href="mailto:issues-reply@bitbucket.org">issues-reply@bitbucket.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
New issue 764: matplotlib.delaunay deprecated in matplotlib 1.4<br>
<a href="https://bitbucket.org/yt_analysis/yt/issue/764/matplotlibdelaunay-deprecated-in" target="_blank">https://bitbucket.org/yt_analysis/yt/issue/764/matplotlibdelaunay-deprecated-in</a><br>
<br>
Nathan Goldbaum:<br>
<br>
When running with the current matplotlib github master, importing yt produces the following error:<br>
<br>
```<br>
/Users/goldbaum/Documents/matplotlib/lib/matplotlib/cbook.py:133: MatplotlibDeprecationWarning: The matplotlib.delaunay module was deprecated in version 1.4. Use matplotlib.tri.Triangulation instead.<br>
```<br>
<br>
We use matplotlib.delaunay in three places:<br>
<br>
```<br>
goldbaum at ROUS in ~/Documents/yt-hg on yt-3.0 at tip?<br>
☿ grin matplotlib.delaunay<br>
./yt/visualization/plot_modifications.py:<br>
  254 :         from matplotlib.delaunay.triangulate import Triangulation as triang<br>
./yt/visualization/plot_types.py:<br>
  539 :         import matplotlib.delaunay.triangulate as de<br>
./yt/visualization/plot_window.py:<br>
   23 : from matplotlib.delaunay.triangulate import Triangulation as triang<br>
```<br>
<br>
I attempted to patch this, hoping it would be quick, but unfortunately it looks like the underlying Triangulation class has a somewhat different API now.  For example [this example](<a href="https://bitbucket.org/yt_analysis/yt/src/84b551a47ac462d646963f0b13e4dd0e85bd9751/yt/visualization/plot_modifications.py?at=yt#cl-311" target="_blank">https://bitbucket.org/yt_analysis/yt/src/84b551a47ac462d646963f0b13e4dd0e85bd9751/yt/visualization/plot_modifications.py?at=yt#cl-311</a>) from `plot_modifications.py` no longer works:<br>

<br>
```<br>
zi = self.triang(x,y).nn_interpolator(z)(xi,yi)<br>
```<br>
<br>
because nn_interpolator is no longer defined in the new interface.<br>
<br>
There's some explanatory background on this in the matplotlib PR that deprecates matplotlib.delaunay:<br>
<br>
<a href="https://github.com/matplotlib/matplotlib/pull/2504" target="_blank">https://github.com/matplotlib/matplotlib/pull/2504</a><br>
<br>
which seems to indicate that nearest-neighbor interpolations has been completely removed from matplotlib...<br>
<br>
<br>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</blockquote></div>