3Dplot / 3d_plot.py
antitheft159's picture
Update 3d_plot.py
9067547 verified
raw
history blame
404 Bytes
import matplotlib.pyplot as plt
import numpy as np
# Create data points
x = np.linspace(-5, 5, 100)
y = np.linspace(-5, 5, 100)
X, Y = np.meshgrid(x, y)
Z = np.sin(np.sqrt(X**2 + Y**2))
# Create a 3D plot
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.plot_surface(X, Y, Z)
ax.set_xlabel('X-axis')
ax.set_ylabel('Y-axis')
ax.set_zlabel('Z-axis')
ax.set_title('WealthNet')
plt.show()