How to generate a Z value for a contour plot based on the x and y values

237 views Asked by At

I am attempted to generate the Z values for a contour plot

x = np.linspace(s_T,e_T,num=graph_density)
y = np.linspace(s_P,e_P,num=graph_density)

x,y = np.meshgrid(x,y)

I have generated an x,y mesh grid to make up my x and y values of the plot. But now i need to take this mesh grid and solve the pairings for a Z value and put it into a matrix. I can think of a couple of brute force ways to do this using M and N "for loops" but I was wondering if there was a more efficient way to do this?

0

There are 0 answers