I have a function in the form of ax^2+bxy+cy^2+d=0
. This one can be written as f(x,y) = 0
. I tried to write a code to plot the function in the x,y-plane as follows
import matplotlib.pyplot as plt
import numpy as np
def f(x,y):
return 0.01*x**2+0.008*x*y-0.013*y**2+0.15*x+0.003*y+1.0097
x = np.arange(-10.0,10.0,0.1)
y = np.arange(-10.0,10.0,0.1)
plt.plot(x, f(x, y));
But I only got a 1D graph of my function. I want the graph where f(x,y)
takes the value 0
.