Re: [Matplotlib-users] Structure of contour object returned from tricontourf

2014-11-02 Thread Hartmut Kaiser
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

Re: [Matplotlib-users] Structure of contour object returned from tricontourf

2014-11-01 Thread Hartmut Kaiser
> 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

[Matplotlib-users] Structure of contour object returned from tricontourf

2014-10-25 Thread Hartmut Kaiser
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[

Re: [Matplotlib-users] Crash when using matplotlib.tri.LinearTriInterpolator

2014-08-12 Thread Hartmut Kaiser
> -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

Re: [Matplotlib-users] Crash when using matplotlib.tri.LinearTriInterpolator

2014-08-11 Thread Hartmut Kaiser
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

Re: [Matplotlib-users] Crash when using matplotlib.tri.LinearTriInterpolator

2014-08-11 Thread Hartmut Kaiser
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

Re: [Matplotlib-users] Crash when using matplotlib.tri.LinearTriInterpolator

2014-08-11 Thread Hartmut Kaiser
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

[Matplotlib-users] Crash when using matplotlib.tri.LinearTriInterpolator

2014-08-10 Thread Hartmut Kaiser
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'][: