Commit 2ce1246c authored by Médéric Boquien's avatar Médéric Boquien

Move the invocation of Matplotlib's Agg backend right after matplotlib's...

Move the invocation of Matplotlib's Agg backend right after matplotlib's import. Even if it violates PEP8, it avoids some nasty warnings when runing pcigale-plots.
parent a5595e8b
......@@ -11,6 +11,7 @@ from astropy.table import Table
from itertools import product, repeat
from collections import OrderedDict
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
import multiprocessing as mp
import numpy as np
......@@ -25,7 +26,6 @@ import matplotlib.gridspec as gridspec
__version__ = "0.1-alpha"
matplotlib.use('Agg')
# Name of the file containing the best models information
BEST_MODEL_FILE = "best_models.txt"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment