3D Line

Three-Phase Helical Waves

Three phase-shifted helical waves showing 120° phase separation, like three-phase electrical systems.

Output
Three-Phase Helical Waves
Python
import matplotlib.pyplot as plt
import numpy as np

# Multiple helical waves showing propagation
n = 300
t = np.linspace(0, 6 * np.pi, n)

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

# Three phase-shifted helices
phases = [0, 2*np.pi/3, 4*np.pi/3]
colors = ['#0ea5e9', '#22c55e', '#f97316']

for phase, color in zip(phases, colors):
    x = np.cos(t + phase)
    y = np.sin(t + phase)
    z = t / np.pi
    ax.plot(x, y, z, color=color, linewidth=2.5, alpha=0.7)

ax.set_xlim(-1.5, 1.5)
ax.set_ylim(-1.5, 1.5)
ax.set_zlim(0, 6)

ax.set_xlabel('X', color='#1f2937', fontsize=10)
ax.set_ylabel('Y', color='#1f2937', fontsize=10)
ax.set_zlabel('Z', color='#1f2937', fontsize=10)
ax.set_title('Three-Phase Helical Waves', color='#1f2937', fontsize=14, fontweight='bold', pad=20)

ax.tick_params(colors='#6b7280', labelsize=8)
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')

ax.view_init(elev=20, azim=30)
plt.tight_layout()
plt.show()
Library

Matplotlib

Category

3D Charts

Did this help you?

Support PyLucid to keep it free & growing

Support