SourceForge logo
SourceForge logo
Menu

matplotlib-users

From: Nils W. <nw...@ia...> - 2006年06月30日 11:46:07
Attachments: mode.png
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
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.
Thanks for helping keep SourceForge clean.
X





Briefly describe the problem (required):
Upload screenshot of ad (required):
Select a file, or drag & drop file here.
Screenshot instructions:

Click URL instructions:
Right-click on the ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies

Ad destination/click URL:

AltStyle によって変換されたページ (->オリジナル) /