3D Stem

GPS Satellite Sky View

Navigation system showing visible GPS satellites with azimuth, elevation, and signal strength.

Output
GPS Satellite Sky View
Python
import matplotlib.pyplot as plt
import numpy as np

np.random.seed(999)

# GPS satellite visibility
n_sats = 12
azimuth = np.random.uniform(0, 2*np.pi, n_sats)
elevation = np.random.uniform(15, 85, n_sats)
signal_strength = 30 + 15 * np.sin(elevation * np.pi / 180) + np.random.normal(0, 3, n_sats)

x = np.cos(azimuth) * (90 - elevation) / 90
y = np.sin(azimuth) * (90 - elevation) / 90
z = signal_strength / 50

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

markerline, stemlines, baseline = ax.stem(x, y, z, linefmt='-', markerfmt='o', basefmt=' ')
plt.setp(stemlines, color='#0ea5e9', linewidth=2, alpha=0.7)
plt.setp(markerline, color='#38bdf8', markersize=10)

ax.set_xlabel('East-West', color='#1f2937', fontsize=10)
ax.set_ylabel('North-South', color='#1f2937', fontsize=10)
ax.set_zlabel('Signal (C/N0)', color='#1f2937', fontsize=10)
ax.set_title('GPS Satellite Sky View', 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.view_init(elev=35, azim=45)
plt.tight_layout()
plt.show()
Library

Matplotlib

Category

3D Charts

Did this help you?

Support PyLucid to keep it free & growing

Support