aboutsummaryrefslogtreecommitdiffstats
path: root/utils/plot.py
diff options
context:
space:
mode:
authorshivesh <s.p.mandalia@qmul.ac.uk>2018-11-06 17:49:17 -0600
committershivesh <s.p.mandalia@qmul.ac.uk>2018-11-06 17:49:17 -0600
commiteb98a187b1bc4ee8e8c962d0e5d1a3d0ae77bc35 (patch)
treed9f8d4f65c9fedf0733653ea529da407fe227783 /utils/plot.py
parent84c05583ad3d582d107fe09be700311ea466b1af (diff)
downloadGolemFlavor-eb98a187b1bc4ee8e8c962d0e5d1a3d0ae77bc35.tar.gz
GolemFlavor-eb98a187b1bc4ee8e8c962d0e5d1a3d0ae77bc35.zip
plotting
Diffstat (limited to 'utils/plot.py')
-rw-r--r--utils/plot.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/plot.py b/utils/plot.py
index fb58176..540ed25 100644
--- a/utils/plot.py
+++ b/utils/plot.py
@@ -34,7 +34,10 @@ from utils.enums import DataType, EnergyDependance
from utils.enums import Likelihood, MixingScenario, ParamTag, StatCateg
from utils.fr import angles_to_u, angles_to_fr
-plt.style.use(os.environ['GOLEMSOURCEPATH']+'/GolemFit/scripts/paper/paper.mplstyle')
+if os.environ.get('GOLEMSOURCEPATH') is not None:
+ plt.style.use(os.environ['GOLEMSOURCEPATH']+'/GolemFit/scripts/paper/paper.mplstyle')
+elif os.path.isfile('./paper.mplstyle'):
+ plt.style.use('./paper.mplstyle')
if 'submitter' in socket.gethostname():
rc('text', usetex=False)