import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
r = np.linspace(0.1, 5, 200)
theta = np.linspace(0, 2 * np.pi, 200)
r, theta = np.meshgrid(r, theta)
X = r * np.cos(theta)
Y = r * np.sin(theta)
Z = np.sin(4 * theta - 2 * r) * np.exp(-0.1 * r)
fig = plt.figure(figsize=(6, 6))
ax = fig.add_subplot(111, projection='3d')
ax.plot_surface(X, Y, Z, cmap='viridis', edgecolor='black', linewidth=0.1)
ax.set_title('Chrono Web', fontsize=18, fontweight='bold')
ax.axis('off')
ax.view_init(elev=30, azim=45)
plt.tight_layout()
plt.show()
#source code --> clcoding.com


0 Comments:
Post a Comment