my function f takes a vector of the form (1, x, y) and the output is a real number.
I want to plot a line such that f(1,x,y)==0 in x-y plane.
My attempt :
delta = 0.025
xrange = arange(0, 12, delta)
yrange = arange(0, 12, delta)
p, q = meshgrid(xrange, yrange)
mesh_point = []
for i in range(len(p[0])):
for j in range (len(q[0])):
mesh_point.append([p[0][i], q[0][j]])
for i in range (0, len(p[0])):
plt.contour(p, q, (y1([1, p[0][i], q[0][i]])-y2([1, p[0][i], q[0][i]])) , [0])
plt.show()
here f = y1(...)-y2(...)
Anyone can help?