ARTICLE AD BOX
When drawing satellite trajectories, the azimuth Angle jumps from 359° to 0°, causing the line segments to span the entire chart (break) instead of smoothly connecting.
python version:3.11.9; matplotlib version: 3.10.7;operation system: Windows11
import numpy as np import matplotlib.pyplot as plt az = np.array([350, 355, 359, 2, 5]) zenith = np.array([30, 28, 25, 23, 20]) fig, ax = plt.subplots(subplot_kw={'projection': 'polar'}) ax.plot(np.deg2rad(az), zenith, 'b-', linewidth=2) plt.show()How can the trajectories be smoothly connected at the 0°/360° junction?
