3D Stem

Radar Pulse Return Signals

Radar sweep visualization showing return signal intensity at various azimuths and ranges.

Output
Radar Pulse Return Signals
Python
import matplotlib.pyplot as plt
import numpy as np

np.random.seed(333)

# Radar return signals
n = 32
azimuth = np.linspace(0, 2*np.pi, n, endpoint=False)
range_km = np.random.uniform(5, 50, n)
intensity = np.random.exponential(0.5, n) * (1 + np.cos(azimuth * 2))

x = range_km * np.cos(azimuth) / 50
y = range_km * np.sin(azimuth) / 50
z = intensity / intensity.max()

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

markerline, stemlines, baseline = ax.stem(x, y, z, linefmt='-', markerfmt='o', basefmt=' ')
plt.setp(stemlines, color='#14b8a6', linewidth=1.5, alpha=0.8)
plt.setp(markerline, color='#2dd4bf', markersize=7)

ax.set_xlabel('X (normalized)', color='white', fontsize=10)
ax.set_ylabel('Y (normalized)', color='white', fontsize=10)
ax.set_zlabel('Intensity', color='white', fontsize=10)
ax.set_title('Radar Pulse Return Signals', 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.view_init(elev=30, azim=45)
plt.tight_layout()
plt.show()
Library

Matplotlib

Category

3D Charts

Did this help you?

Support PyLucid to keep it free & growing

Support