I'm having a conceptual problem with my data constraining boundary conditions for a wireframe plot in python. Could anyone explain to me where I have gone wrong?
I would like the boundaries to be constrained between -1.0 < x < 1.2, 0 < y < 0.25 and -0.6 < z < 0.2
fig = plt.figure()
ax = plt.subplot(111, projection='3d')
def log_OIII_Hb_NII(log_NII_Ha, eps=0):
return 1.19 + eps + 0.61 / (log_NII_Ha - eps - 0.47)
def log_OIII_Hb_OI(log_OI_Ha, eps=0):
return 1.33 + eps + 0.73 / (log_OI_Ha - eps + 0.59)
def log_OIII_Hb_SII(log_SII_Ha, eps=0):
return 1.30 + eps + 0.72 / (log_SII_Ha - eps - 0.32)
NII = np.linspace(-2.0, 0.35)
ax.set_xlim3d(-1.0, 1.2)
ax.set_ylim3d( 0.0, 0.25)
ax.set_zlim3d(-0.6, 0.2)
ax.plot_wireframe(NII, 0, log_OIII_Hb_NII(NII))
ax.plot_wireframe(NII, 0, log_OIII_Hb_NII(NII, 0.1))
ax.plot_wireframe(NII, 0, log_OIII_Hb_NII(NII, -0.1))
ax.plot_wireframe(NII, 0.1, log_OIII_Hb_NII(NII))
ax.plot_wireframe(NII, 0.1, log_OIII_Hb_NII(NII, 0.1))
ax.plot_wireframe(NII, 0.1, log_OIII_Hb_NII(NII, -0.1))
ax.plot_wireframe(NII, 0.2, log_OIII_Hb_NII(NII))
ax.plot_wireframe(NII, 0.2, log_OIII_Hb_NII(NII, 0.1))
ax.plot_wireframe(NII, 0.2, log_OIII_Hb_NII(NII, -0.1))
plt.show()