From 42ae89c25c2c47c3c625ba26eec797029f234587 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Thu, 1 May 2025 12:06:02 +0200 Subject: [PATCH] Skyplot: add arrow --- utils/skyplot/skyplot.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/utils/skyplot/skyplot.py b/utils/skyplot/skyplot.py index 9846d51ef..9d93d9ef3 100755 --- a/utils/skyplot/skyplot.py +++ b/utils/skyplot/skyplot.py @@ -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,