Ian,
> You are using masked arrays where you shouldn't, again. The documentation
> for tricontour states that it expects z to be an array, it doesn't say
> masked array. If you pass it a masked array, it will ignore the
> mask. Hence you have a number of triangles that include a vertex with a
> On 26 October 2014 00:18, Hartmut Kaiser wrote:
> At this point we assume, that polys[0] is a linear ring to be interpreted
> as
> a polygon exterior and polys[1:] are the corresponding interiors for
> polys[0].
>
> Here are our questions:
>
> Is this assumpt
All,
We try to generate contour polygons from an unstructured triangular grid
stored in a netcdf file:
import netCDF4
import matplotlib.tri as tri
# read data
var = netCDF4.Dataset('filename.cdf').variables
x = var['x'][:]
y = var['y'][:]
elems = var['element'][:,:]-1
data = var[
> -Original Message-
> From: Ian Thomas [mailto:ianthoma...@gmail.com]
> Sent: Tuesday, August 12, 2014 4:35 AM
> To: Hartmut Kaiser
> Cc: Andrew Dawson; Carola Kaiser; matplotlib-users
> Subject: Re: [Matplotlib-users] Crash when using
> matplotlib.tri.LinearTriInterpola
l verify whether I can get the results I hope for and will report back.
Thanks again!
Regards Hartmut
---
http://boost-spirit.com
http://stellar.cct.lsu.edu
>
> Regards Hartmut
> ---
> http://boost-spirit.com
> http://stellar.cct.lsu.edu
>
> >
&g
bit excessive...
Thanks everybody for verifying anyways!
Regards Hartmut
---
http://boost-spirit.com
http://stellar.cct.lsu.edu
>
>
>
> On 11 August 2014 14:54, Hartmut Kaiser wrote:
> Ian,
>
> > I'm running into a crash while trying to construct a
Ian,
> I'm running into a crash while trying to construct a
> tri.LinearTriInterpolator. Here is the short version of the code:
>
> import netCDF4
> import matplotlib.tri as tri
>
> var = netCDF4.Dataset('filename.cdf').variables
> x = var['x'][:]
> y = var['y'][:]
> data
All,
I'm running into a crash while trying to construct a
tri.LinearTriInterpolator. Here is the short version of the code:
import netCDF4
import matplotlib.tri as tri
var = netCDF4.Dataset('filename.cdf').variables
x = var['x'][:]
y = var['y'][:]
data = var['attrname'][: