Opened 13 years ago

Closed 13 years ago

#155 closed enhancement (fixed)

Add matplotlib mpl_toolkits.natgrid package

Reported by: ccrook Owned by: alexbruy
Priority: minor Component: Package
Version: Keywords: matplotlib toolkit
Cc: alexbruy


The mpl_toolkits.natgrid module adds more robust triangluation to matplotlib. From the matplot lib documentation for the griddata function (used in at least one Quantum GIS plugin!) ...

"The triangulation algorithm in this package is known to fail on some nearly pathological cases. For this reason, a separate toolkit (mpl_tookits.natgrid) has been created that provides a more robust algorithm fof triangulation and interpolation. This toolkit is based on the NCAR natgrid library, which contains code that is not redistributable under a BSD-compatible license. When installed, this function will use the mpl_toolkits.natgrid algorithm, otherwise it will use the built-in matplotlib.delaunay package"

In this case it seems not difficult to find "nearly pathalogical".

I'm not sure what the implication of the license would be for OsGeo4W? Does this prohibit its inclusion?

The natgrid matplotlib toolkit can be downloaded from

Change History (3)

comment:1 by warmerdam, 13 years ago

Owner: changed from osgeo4w-dev@… to alexbruy

Reassigning to Alex, the python-matplotlib packager. OSGeo4W does not require that code for packages be redistributable under a BSD license, though special care should be taken with any modules built from source that is not OSI compliant.

comment:2 by alexbruy, 13 years ago

Cc: alexbruy added
Status: newassigned

As I understand mpl_toolkits.natgrid is only a wrapper to the NCAR natgrid library. So it is necessary to package this library too. I email to NCAR and ask is it possible to redistribute this library.

comment:3 by alexbruy, 13 years ago

Resolution: fixed
Status: assignedclosed

Package natgrid-0.1-1 added. Please test and report if there are any problems

Note: See TracTickets for help on using tickets.