I i have tree lists or array of values
list x of 100… values
list y of 100… values
list mag of 100… values
list x and y are coordiantes of points
and list Mag is magnitude of something at that point
how can i plot this quantities using matplotlib, any function please?
my code starts as…i need to plot the points vhat can i use?
from future import division
from matplotlib.patches import Patch
from pylab import *
def func3(x,y):
return (1- x/2 + x5 +
y3)*exp(-x2-y2)
make these smaller to increase the resolution
dx, dy = 0.5, 0.5
X = arange(-3.0, 3.0001, dx)
Y = arange(-3.0, 3.0001, dy)
Mag= X2+Y2
???(X, Y, Mag)
colorbar()
axis([-3,3,-3,3])
savefig(‘three d plot of points making a surface’)
show()
···
¡Sé un mejor ambientalista!
Encuentra consejos para cuidar el lugar donde vivimos en:
http://telemundo.yahoo.com/promos/mejorambientalista.html
¡Sé un mejor besador!
Comparte todo lo que sabes sobre besos en: