From: Michael D. <md...@st...> - 2012-03-07 18:32:39
|
On 03/07/2012 11:59 AM, Benjamin Root wrote: > > > On Wed, Mar 7, 2012 at 10:46 AM, Jorge Scandaliaris > <jor...@ya... <mailto:jor...@ya...>> wrote: > > Hi, > I've had an import error with some of my code, specifically with > nxutils (I need > it for using points_inside_poly). > > In [1]: import matplotlib.nxutils as nx > --------------------------------------------------------------------------- > ImportError Traceback (most recent > call last) > /home/jscandal/<ipython-input-1-c56b9729b42e> in <module>() > ----> 1 import matplotlib.nxutils as nx > > ImportError: No module named nxutils > > I built mpl from trunk and tried also version 1.1 from my distro, > but neither > seems to have nxutils. I still find the examples in the docs using > it, though, > so I am confused. > Has nxutils been replaced or removed? > > Thanks > > Jorge > > > Last I heard, it was supposed to be deprecated in master (although it > was accidentially removed at one point). Indeed, it appears to be > missing from the current master. The deprecation process must be > followed! Personally, I think such removal is short-sighted (nxutil's > functions are much faster than their python counter-parts). I agree that the deprecation process should have been followed better. However, I'm not sure what you mean by them being faster than their Pyhton counterparts. Both functions in nxutils are replaced by functions in _path.cpp, which are also written in C++ but are more complete and don't have broken corner cases. They may be slightly slower because they have a few more checks and handle Bezier curves, but they are not significantly slower. Mike |