Commit 029043802e3d4cfee3bdfca4962de451c43107e7

Authored by Jürgen Knödlseder
1 parent 2070e8a1

Correct units in plot displayed by show_spectrum.py.

Showing 1 changed file with 3 additions and 3 deletions
examples/show_spectrum.py
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 # ========================================================================== 2 # ==========================================================================
3 # This script shows a spectrum created with csspec 3 # This script shows a spectrum created with csspec
4 # 4 #
5 -# Copyright (C) 2015 Juergen Knoedlseder 5 +# Copyright (C) 2015-2016 Juergen Knoedlseder
6 # 6 #
7 # This program is free software: you can redistribute it and/or modify 7 # This program is free software: you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by 8 # it under the terms of the GNU General Public License as published by
@@ -95,6 +95,6 @@ if __name__ == "__main__": @@ -95,6 +95,6 @@ if __name__ == "__main__":
95 plt.grid() 95 plt.grid()
96 plt.errorbar(energies, flux, yerr=e_flux, xerr=[ed_engs, eu_engs], fmt='ro') 96 plt.errorbar(energies, flux, yerr=e_flux, xerr=[ed_engs, eu_engs], fmt='ro')
97 plt.errorbar(ul_energies, ul_flux, xerr=[ul_ed_engs, ul_eu_engs], yerr=1.0e-11, uplims=True, fmt='ro') 97 plt.errorbar(ul_energies, ul_flux, xerr=[ul_ed_engs, ul_eu_engs], yerr=1.0e-11, uplims=True, fmt='ro')
98 - plt.xlabel("Energy [TeV]")  
99 - plt.ylabel(r"dN/dE [erg cm$^{-2}$ s$^{-1}$]") 98 + plt.xlabel("Energy (TeV)")
  99 + plt.ylabel(r"E dN/dE (erg cm$^{-2}$ s$^{-1}$)")
100 plt.show() 100 plt.show()