# 3D-kromme import matplotlib.pyplot as plt import numpy as np from mpl_toolkits import mplot3d plt.figure (figsize = (8, 8)) ax = plt.axes (projection = "3d") c = 10 x = np.linspace (0, 3, 1000) y = -0.64760301386 * x**2 + 1.6094757082 * x + 1 z = c * 1.0905186774 * x / 3 ax.set_xlim ([0.00, 3.01]) ax.set_ylim ([2.01, 0.00]) ax.set_zlim ([0.00, c * 1.20]) ax.set (xlabel = "x", ylabel = "z", zlabel = "ct") ax.set_aspect ("equal") ax.plot3D (x, y, z, color = "red") plt.show ()