mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-09-09 22:36:02 +00:00
skyplot: improve program exit
This commit is contained in:
@@ -875,7 +875,11 @@ def plot_satellite_tracks(satellites, obs_lat, obs_lon, obs_alt,
|
|||||||
plt.savefig(output_name, format=output_format, bbox_inches='tight')
|
plt.savefig(output_name, format=output_format, bbox_inches='tight')
|
||||||
print(f"Image saved as {output_name}")
|
print(f"Image saved as {output_name}")
|
||||||
if show_plot:
|
if show_plot:
|
||||||
plt.show()
|
try:
|
||||||
|
plt.show()
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
print("\nExecution interrupted by the user. Exiting.")
|
||||||
|
plt.close()
|
||||||
else:
|
else:
|
||||||
plt.close()
|
plt.close()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user