Fix issue #7
This commit is contained in:
parent
a91da5e77b
commit
c7191ecc47
@ -4,8 +4,15 @@ of Matplotlib.
|
|||||||
"""
|
"""
|
||||||
import collections
|
import collections
|
||||||
import math
|
import math
|
||||||
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
|
import matplotlib as mpl
|
||||||
|
# Use "agg" backend automatically if no display is available.
|
||||||
|
try:
|
||||||
|
os.environ["DISPLAY"]
|
||||||
|
except KeyError:
|
||||||
|
mpl.use("agg")
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import numpy as np
|
import numpy as np
|
||||||
import seaborn.apionly as sns
|
import seaborn.apionly as sns
|
||||||
|
Loading…
Reference in New Issue
Block a user