Answers for "Three-dimensional Contour Plots"

0

Three-dimensional Contour Plots

fig = plt.figure()
ax = plt.axes(projection='3d')
ax.contour3D(X, Y, Z, 50, cmap='binary')
ax.set_xlabel('x')
ax.set_ylabel('y')
ax.set_zlabel('z');
Posted by: Guest on June-29-2021
0

Three-dimensional Contour Plots

ax.view_init(60, 35)
fig
Posted by: Guest on June-29-2021
0

Three-dimensional Contour Plots

def f(x, y):
    return np.sin(np.sqrt(x ** 2 + y ** 2))

x = np.linspace(-6, 6, 30)
y = np.linspace(-6, 6, 30)

X, Y = np.meshgrid(x, y)
Z = f(X, Y)
Posted by: Guest on June-29-2021

Browse Popular Code Answers by Language