From 029043802e3d4cfee3bdfca4962de451c43107e7 Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 10 Feb 2016 12:00:52 +0100 Subject: [PATCH] Correct units in plot displayed by show_spectrum.py. --- examples/show_spectrum.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/show_spectrum.py b/examples/show_spectrum.py index 8065a37..e8945e5 100755 --- a/examples/show_spectrum.py +++ b/examples/show_spectrum.py @@ -2,7 +2,7 @@ # ========================================================================== # This script shows a spectrum created with csspec # -# Copyright (C) 2015 Juergen Knoedlseder +# Copyright (C) 2015-2016 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 @@ -95,6 +95,6 @@ if __name__ == "__main__": plt.grid() plt.errorbar(energies, flux, yerr=e_flux, xerr=[ed_engs, eu_engs], fmt='ro') plt.errorbar(ul_energies, ul_flux, xerr=[ul_ed_engs, ul_eu_engs], yerr=1.0e-11, uplims=True, fmt='ro') - plt.xlabel("Energy [TeV]") - plt.ylabel(r"dN/dE [erg cm$^{-2}$ s$^{-1}$]") + plt.xlabel("Energy (TeV)") + plt.ylabel(r"E dN/dE (erg cm$^{-2}$ s$^{-1}$)") plt.show() -- libgit2 0.21.4