3D Line

Plasma Vortex Funnel

A descending vortex funnel with exponentially decreasing radius, rendered with fire/plasma colors.

Output
Plasma Vortex Funnel
Python
import matplotlib.pyplot as plt
import numpy as np

# Vortex/funnel spiral
n = 800
t = np.linspace(0, 8 * np.pi, n)

# Radius decreases exponentially
r = 2 * np.exp(-0.08 * t)

x = r * np.cos(t * 1.5)
y = r * np.sin(t * 1.5)
z = -t / np.pi  # Goes downward

fig = plt.figure(figsize=(10, 8), facecolor='#0a0a0f')
ax = fig.add_subplot(111, projection='3d', facecolor='#0a0a0f')

# Fire/plasma colors
colors = np.linspace(0, 1, n)
for i in range(n-1):
    c = colors[i]
    # Red to yellow gradient
    r_col = 239
    g_col = int(68 + (187 - 68) * c)
    b_col = int(68 + (36 - 68) * c)
    color = f'#{r_col:02x}{g_col:02x}{min(255, max(0, b_col)):02x}'
    ax.plot(x[i:i+2], y[i:i+2], z[i:i+2], color=color, linewidth=2)

# Glow
ax.plot(x, y, z, color='#ef4444', linewidth=5, alpha=0.1)

ax.set_xlim(-2.5, 2.5)
ax.set_ylim(-2.5, 2.5)
ax.set_zlim(-9, 0)

ax.set_xlabel('X', color='white', fontsize=10)
ax.set_ylabel('Y', color='white', fontsize=10)
ax.set_zlabel('Z', color='white', fontsize=10)
ax.set_title('Plasma Vortex Funnel', color='white', fontsize=14, fontweight='bold', pad=20)

ax.tick_params(colors='#64748b', labelsize=8)
ax.xaxis.pane.fill = False
ax.yaxis.pane.fill = False
ax.zaxis.pane.fill = False
ax.xaxis.pane.set_edgecolor('#1e293b')
ax.yaxis.pane.set_edgecolor('#1e293b')
ax.zaxis.pane.set_edgecolor('#1e293b')
ax.grid(True, alpha=0.2, color='#334155')

ax.view_init(elev=25, azim=45)
plt.tight_layout()
plt.show()
Library

Matplotlib

Category

3D Charts

Did this help you?

Support PyLucid to keep it free & growing

Support