Skip to content

Commit

Permalink
Use AGG as matplotlib backend, fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
parttimenerd committed Apr 6, 2016
1 parent b690c8b commit af6c0bb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions temci/report/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
if util.can_import("numpy"):
import numpy as np
import pandas as pd
import matplotlib as mpl
mpl.use("agg")
from temci.utils.settings import Settings
from multiprocessing import Pool
from temci.utils.util import join_strs
Expand Down
3 changes: 3 additions & 0 deletions temci/report/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
import scipy as sp
import scipy.stats as st
import pandas as pd
import matplotlib as mpl
mpl.use("agg")
from temci.utils.typecheck import *


Expand Down Expand Up @@ -633,6 +635,7 @@ def reset_plt(self):
sns.reset_defaults()
sns.set_style("darkgrid")
sns.set_palette(sns.color_palette("muted"))
mpl.use("agg")


class Single(BaseStatObject):
Expand Down

0 comments on commit af6c0bb

Please sign in to comment.