diff options
| author | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-11-06 17:49:17 -0600 |
|---|---|---|
| committer | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-11-06 17:49:17 -0600 |
| commit | eb98a187b1bc4ee8e8c962d0e5d1a3d0ae77bc35 (patch) | |
| tree | d9f8d4f65c9fedf0733653ea529da407fe227783 /utils/plot.py | |
| parent | 84c05583ad3d582d107fe09be700311ea466b1af (diff) | |
| download | GolemFlavor-eb98a187b1bc4ee8e8c962d0e5d1a3d0ae77bc35.tar.gz GolemFlavor-eb98a187b1bc4ee8e8c962d0e5d1a3d0ae77bc35.zip | |
plotting
Diffstat (limited to 'utils/plot.py')
| -rw-r--r-- | utils/plot.py | 5 |
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) |
