allow script to run on a headless server without $DISPLAY
This commit is contained in:
parent
1b19806d05
commit
ac668f0a1a
|
@ -54,6 +54,10 @@ def getUpdatesDaily(t):
|
||||||
|
|
||||||
|
|
||||||
def plotData(filename, ylabel, timespan, x, y):
|
def plotData(filename, ylabel, timespan, x, y):
|
||||||
|
# allow this to run on a headless server
|
||||||
|
import matplotlib
|
||||||
|
matplotlib.use("Agg")
|
||||||
|
|
||||||
import matplotlib.pyplot as plt
|
import matplotlib.pyplot as plt
|
||||||
import matplotlib.dates as mdates
|
import matplotlib.dates as mdates
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue