I want to use matplotlib to visualize of 2 dimensional mesh (more particulary
adataptive mesh, it looks like this : http://www.cita.utoronto.ca/~ljdursi/research/curve-region-oct.png).
It consists of a square or a rectangle splitted in square of the same area, each
square can be divided in four over squares and one or more of these four over
squares can be divided in four over squares ... (and this process is achieved
recursively depends of your refinement level).
I have a list which contains the coordinates of the center of each squares and I
want to use these points do draw the mesh. I tried to use matplotlib with
meshgrid
to display the mesh like in the link given before but I didn't succeeded.

My questions are :

Is matplotlib the right library to do this ? and for a positive answer how I can
do it ?

I don't know if it can be done with matplotlib, but for drawing meshes and so on I use vtk http://public.kitware.com/VTK/ On that page are also examples how to do that job, just search for "vtkUnstructuredGrid" or "vtkStructuredGrid" depending on your mesh.

Hope that helps.

Wolfgang

alexposts@...185... schrieb:

ยทยทยท

Hello,

I want to use matplotlib to visualize of 2 dimensional mesh (more particulary
adataptive mesh, it looks like this : http://www.cita.utoronto.ca/~ljdursi/research/curve-region-oct.png).
It consists of a square or a rectangle splitted in square of the same area, each
square can be divided in four over squares and one or more of these four over
squares can be divided in four over squares ... (and this process is achieved
recursively depends of your refinement level).
I have a list which contains the coordinates of the center of each squares and I
want to use these points do draw the mesh. I tried to use matplotlib with
meshgrid
to display the mesh like in the link given before but I didn't succeeded.

My questions are :

Is matplotlib the right library to do this ? and for a positive answer how I can
do it ?

Thanks

Alex

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV