diff --git a/examples/show_spectrum.py b/examples/show_spectrum.py index 62f7823..c594efd 100755 --- a/examples/show_spectrum.py +++ b/examples/show_spectrum.py @@ -2,7 +2,7 @@ # ========================================================================== # Display spectrum generated by csspec # -# Copyright (C) 2015-2017 Juergen Knoedlseder +# Copyright (C) 2015-2019 Juergen Knoedlseder # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -19,8 +19,6 @@ # # ========================================================================== import sys -import gammalib -import cscripts try: import matplotlib.pyplot as plt plt.figure() @@ -28,6 +26,8 @@ try: except (ImportError, RuntimeError): print('This script needs the "matplotlib" module') sys.exit() +import gammalib +import cscripts # ============= #