Christopher Barker wrote:
> 
> Erik Schweller wrote:
>> My overall goal is to generate contour plots for a wide range of input
>> data.  The data points are not regularly spaced and do not align to
>> any grid.  The data points represent measurements taken from a model
>> that can take on a variety of shapes.  To make matters more difficult,
>> I'd prefer not to interpolate around corners of the model.
> 
> It strikes me that when you are working with unstructured data like 
> this, it may be better to keep it unstrucured -- do the delanauy 
> triangulation and directly contour from that. It's actually prety easy 
> to contour a triangular mesh.
> 
> Unfortunately, I haven't see code to do it in scipy or MPL. Am I wrong? 
> Is there something there. If not, there really should be it seems a bit 
> silly to shoehorn your data to a rectangular grid just to contour it.
> 
> I suppose NN interpolation is essentially doing this already, but it 
> introduces issues with a boundary that doesnt' line up to a rectangular 
> grid.
> 
> As I think about it, I'm going to have to write code to do this (contour 
> an unstructured triangular mesh) sometime soon, so please let me know if 
> it does exist already -- if not I'll try to remember to contribute it 
> when I get around to it.
> 
> -Chris
> 

Chris, I found this old thread. Did you ever find code to directly
interpolate a triangulation? I need to do the same thing.

Thanks,
Geoff

--
Geoffrey Ely
g...@usc.edu
http://earth.usc.edu/~gely/
Department of Earth Sciences
University of Southern California
Los Angeles, CA 90089-0740

-- 
View this message in context: 
http://old.nabble.com/Contour-Plotting-of-Varied-Data-on-a-Shape-tp25089018p27826931.html
Sent from the matplotlib - users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to