1
0
mirror of https://github.com/gnss-sdr/gnss-sdr synced 2025-05-11 20:04:07 +00:00

Skyplot: add arrow

This commit is contained in:
Carles Fernandez 2025-05-01 12:06:02 +02:00
parent 616fd5aeb1
commit 42ae89c25c
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D

View File

@ -383,6 +383,20 @@ def plot_satellite_tracks(satellites, obs_lat, obs_lon, obs_alt,
# Plot trajectory
ax.plot(theta, r, '-', color=color, alpha=0.7, linewidth=2.5)
# Add arrow at last point
if len(theta) >= 2: # Need at least 2 points for direction
ax.annotate('',
xytext=(theta[-2], r[-2]),
xy=(theta[-1], r[-1]),
arrowprops={
'arrowstyle': '->',
'color': color,
'alpha': 0.7,
'linewidth': 1.5,
'shrinkA': 0,
'shrinkB': 0
})
# Label at midpoint
mid_idx = len(theta)//2
ax.text(theta[mid_idx], r[mid_idx], prn,