Hi all,
I am going to visualize mode shapes of L-shaped membranes using contour.
So far, I have two lists xin, yin containing the coordinates of interior points (see bottom of mode.png) .
A third list will contain the corresponding displacements u(xin,yin).
>>> xin
[-0.77777777777777779, -0.77777777777777779, -0.77777777777777779, -0.77777777777777779, -0.77777777777777779, -0.77777777777777779, -0.77777777777777779, -0.77777777777777779, -0.77777777777777779, -0.55555555555555558, -0.55555555555555558, -0.55555555555555558, -0.55555555555555558, -0.55555555555555558, -0.55555555555555558, -0.55555555555555558, -0.55555555555555558, -0.55555555555555558, -0.33333333333333337, -0.33333333333333337, -0.33333333333333337, -0.33333333333333337, -0.33333333333333337, -0.33333333333333337, -0.33333333333333337, -0.33333333333333337, -0.33333333333333337, -0.11111111111111116, -0.11111111111111116, -0.11111111111111116, -0.11111111111111116, -0.11111111111111116, -0.11111111111111116, -0.11111111111111116, -0.11111111111111116, -0.11111111111111116, 0.11111111111111116, 0.11111111111111116, 0.11111111111111116, 0.11111111111111116, 0.11111111111111116, 0.33333333333333326, 0.33333333333333326, 0.33333333333333326, 0.33333333333333326, 0.33333333333333326, 0.55555555555555536, 0.55555555555555536, 0.55555555555555536, 0.55555555555555536, 0.55555555555555536, 0.77777777777777768, 0.77777777777777768, 0.77777777777777768, 0.77777777777777768, 0.77777777777777768, 1.0, 1.0, 1.0, 1.0, 1.0]
>>> yin
[-0.77777777777777779, -0.55555555555555558, -0.33333333333333337, -0.11111111111111116, 0.11111111111111116, 0.33333333333333326, 0.55555555555555536, 0.77777777777777768, 1.0, -0.77777777777777779, -0.55555555555555558, -0.33333333333333337, -0.11111111111111116, 0.11111111111111116, 0.33333333333333326, 0.55555555555555536, 0.77777777777777768, 1.0, -0.77777777777777779, -0.55555555555555558, -0.33333333333333337, -0.11111111111111116, 0.11111111111111116, 0.33333333333333326, 0.55555555555555536, 0.77777777777777768, 1.0, -0.77777777777777779, -0.55555555555555558, -0.33333333333333337, -0.11111111111111116, 0.11111111111111116, 0.33333333333333326, 0.55555555555555536, 0.77777777777777768, 1.0, 0.11111111111111116, 0.33333333333333326, 0.55555555555555536, 0.77777777777777768, 1.0, 0.11111111111111116, 0.33333333333333326, 0.55555555555555536, 0.77777777777777768, 1.0, 0.11111111111111116, 0.33333333333333326, 0.55555555555555536, 0.77777777777777768, 1.0, 0.11111111111111116, 0.33333333333333326, 0.55555555555555536, 0.77777777777777768, 1.0, 0.11111111111111116, 0.33333333333333326, 0.55555555555555536, 0.77777777777777768, 1.0]
How can I realize this task with mpl ?
help (contour) yields
contour(X,Y,Z) - X,Y specify the (x,y) coordinates of the surface.
X, Y, and Z must be arrays with the same dimensions.
Z may be a masked array, but filled contouring may not handle
internal masked regions correctly.
How do I build X,Y from my lists xin, yin ?
Any pointer would be appreciated.
Nils