From: yadin B. R. <con...@ya...> - 2007-10-05 08:55:00
|
I i have tree lists of values=0Alist x of 100... values=0Alist y of 100.. v= alues=0Alist mag of 100.. values=0Alist x and y are coordiantes of points = =0Aand list Mag is magnitude of something at that point=0A=0Ahow can i plot= this quantities using pcolor=0A=0Afrom __future__ import division=0Afrom m= atplotlib.patches import Patch=0Afrom pylab import *=0A=0Adef func3(x,y):= =0A return (1- x/2 + x**5 + y**3)*exp(-x**2-y**2)=0A=0A=0A# make these s= maller to increase the resolution=0Adx, dy =3D 0.5, 0.5=0A=0AX =3D arange(-= 3.0, 3.0001, dx)=0A=0AY =3D arange(-3.0, 3.0001, dy)=0A=0AMag=3D X**2+Y**2= =0A=0Apcolor(X, Y, Mag, shading=3D'flat')=0Acolorbar()=0Aaxis([-3,3,-3,3])= =0Asavefig('pcolor_demo')=0Ashow()=0A=0A=0A=0A=0A ____________________= ________________________________________________________________=0A=A1S=E9 = un mejor besador!=0AComparte todo lo que sabes sobre besos. = =0Ahttp://telemundo.yahoo.com/promos/mejorbesador.html |