mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-05-16 06:14:08 +00:00
Skyplot: add arrow
This commit is contained in:
parent
616fd5aeb1
commit
42ae89c25c
@ -383,6 +383,20 @@ def plot_satellite_tracks(satellites, obs_lat, obs_lon, obs_alt,
|
|||||||
# Plot trajectory
|
# Plot trajectory
|
||||||
ax.plot(theta, r, '-', color=color, alpha=0.7, linewidth=2.5)
|
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
|
# Label at midpoint
|
||||||
mid_idx = len(theta)//2
|
mid_idx = len(theta)//2
|
||||||
ax.text(theta[mid_idx], r[mid_idx], prn,
|
ax.text(theta[mid_idx], r[mid_idx], prn,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user