mesh plot

Dear Matplotlib users,

I'm new to this list as well as matplot lib, but already really impressed by this library.
I was wondering if there was an easy way to plot a simple (or not) fem mesh in the deformed (or not) state
before starting to write such a function, I though it would be a good idea to ask to the list.

Any advice or idea would be appreciated, thanks !

···

--

Henry Proudhon
Postdoc Fellow
Materials Engineering
The University of British Columbia
309-3650 Stores Road
V6T-1Z4 Vancouver B.C. (Canada)

Hi,

Henry Proudhon wrote:

Dear Matplotlib users,

I'm new to this list as well as matplot lib, but already really impressed by this library.
I was wondering if there was an easy way to plot a simple (or not) fem mesh in the deformed (or not) state
before starting to write such a function, I though it would be a good idea to ask to the list.

there has been a discussion about that topic some weeks ago on the scipy mailing
list. Two proposals were given for how to get a structured mesh from some
irregularly placed points.

The first calculates a 2D surface spline:
http://www.scipy.org/mailinglists/mailman?fn=scipy-user/2005-July/004887.html

The second does a triangulation. Though I didn't understand what to do with the
triangulated data, as the result is still not an orthogonal grid. I'd be
interested in some code that uses triangulation and plots through matplotlib. Up
to now I'm using the SurfaceMap module of VTK.
http://www.scipy.org/mailinglists/mailman?fn=scipy-user/2005-July/004855.html

Regards, Christian

Christian, thanks for the pointers, interesting indeed.

For now I've solved my problem, I realize I could actually get an array with the node numbers connexions. From here it was very easy to plot the deformed mesh from the array [node number - deformed coord] with Ryan's solution. It works very well.
but I've read the topic you pointed with interest, I may need something like this in the future.

--Henry

Christian Kristukat wrote:

···

there has been a discussion about that topic some weeks ago on the scipy mailing
list. Two proposals were given for how to get a structured mesh from some
irregularly placed points.

The first calculates a 2D surface spline:
http://www.scipy.org/mailinglists/mailman?fn=scipy-user/2005-July/004887.html

The second does a triangulation. Though I didn't understand what to do with the
triangulated data, as the result is still not an orthogonal grid. I'd be
interested in some code that uses triangulation and plots through matplotlib. Up
to now I'm using the SurfaceMap module of VTK.
http://www.scipy.org/mailinglists/mailman?fn=scipy-user/2005-July/004855.html

Regards, Christian