I need to draw a graph in python using this function: b²x²+a²z²+2dxz²+d²z²-a²b²=0 where b, a and d will be different each time. The problem here for me is that I cannot separate X and Z. I've tried something like that.
import numpy as np
import matplotlib.pyplot as plt
z = -np.linspace(9,15,100)
x = np.linspace(-26,26,1000)
x,z = np.meshgrid(x,z)
a = 4
b = 2
d = 1
Z = a**2*z**2+2*d*z**2-a**2*b**2
X = b**2*x**2
plt.contour(x,z,(X+Z),[0])
plt.xlim([-1.5,1.5])
plt.ylim([-11.5,-8.5])