3D Fill Between

3D Tornado Vortex Visualization

Meteorological visualization of tornado vortex structure with expanding radius.

Output
3D Tornado Vortex Visualization
Python
import matplotlib.pyplot as plt
import numpy as np

fig = plt.figure(figsize=(12, 9), facecolor='#ffffff')
ax = fig.add_subplot(111, projection='3d')
ax.set_facecolor('#ffffff')

n = 300
t = np.linspace(0, 8*np.pi, n)
z = np.linspace(0, 5, n)

# Expanding vortex
r_outer = 0.3 + 0.4 * z
r_inner = 0.15 + 0.2 * z

x_outer = r_outer * np.cos(t)
y_outer = r_outer * np.sin(t)

x_inner = r_inner * np.cos(t)
y_inner = r_inner * np.sin(t)

ax.plot(x_outer, y_outer, z, linewidth=2.5, color='#6366F1')
ax.plot(x_inner, y_inner, z, linewidth=2, color='#EC4899')

# Vortex fill
for i in range(0, n, 5):
    ax.plot([x_outer[i], x_inner[i]], [y_outer[i], y_inner[i]], [z[i], z[i]], 
            color='#8B5CF6', alpha=0.3, linewidth=0.7)

ax.set_xlabel('X', fontsize=11, color='#1f2937')
ax.set_ylabel('Y', fontsize=11, color='#1f2937')
ax.set_zlabel('Height', fontsize=11, color='#1f2937')
ax.set_title('Tornado Vortex Structure', fontsize=14, color='#1f2937', fontweight='bold', pad=15)

ax.tick_params(colors='#374151', labelsize=9)
ax.xaxis.pane.fill = False
ax.yaxis.pane.fill = False
ax.zaxis.pane.fill = False
ax.xaxis.pane.set_edgecolor('#e5e7eb')
ax.yaxis.pane.set_edgecolor('#e5e7eb')
ax.zaxis.pane.set_edgecolor('#e5e7eb')
ax.grid(True, alpha=0.3, color='#d1d5db')

plt.tight_layout()
plt.show()
Library

Matplotlib

Category

3D Charts

Did this help you?

Support PyLucid to keep it free & growing

Support