3D Line

Nautilus Shell Spiral

A logarithmic spiral inspired by nautilus shells, with golden amber tones on dark background.

Output
Nautilus Shell Spiral
Python
import matplotlib.pyplot as plt
import numpy as np

# Seashell/nautilus-like spiral
n = 800
t = np.linspace(0, 6 * np.pi, n)

# Logarithmic spiral with vertical component
a = 0.1
b = 0.15
r = a * np.exp(b * t)

x = r * np.cos(t)
y = r * np.sin(t)
z = 0.1 * t + 0.05 * r * np.sin(4 * t)

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

# Amber/gold seashell colors
ax.plot(x, y, z, color='#f59e0b', linewidth=4, alpha=0.2)
ax.plot(x, y, z, color='#fbbf24', linewidth=2)
ax.plot(x, y, z, color='#fcd34d', linewidth=0.8)

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('Nautilus Shell Spiral', 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=35, azim=50)
plt.tight_layout()
plt.show()
Library

Matplotlib

Category

3D Charts

Did this help you?

Support PyLucid to keep it free & growing

Support