PYTHON CODING
- waclaw_koscielniak
- Oct 4
- 1 min read
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
u = np.linspace(0, 2 * np.pi, 100)
v = np.linspace(0, np.pi, 100)
x = 10 * np.outer(np.cos(u), np.sin(v))
y = 10 * np.outer(np.sin(u), np.sin(v))
z = 10 * np.outer(np.ones(np.size(u)), np.cos(v))
ax.plot_surface(x, y, z, cmap='cool')
plt.show()
[Running] python3 -u "/Users/name/test/test614.py"
[Done] exited with code=0 in 11.854 seconds

Did you try to run it?