Skip to content

Commit

Permalink
uses Agg so can run without xserver
Browse files Browse the repository at this point in the history
  • Loading branch information
Pragmatismo committed Feb 7, 2017
1 parent fb17e06 commit 9226c4b
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions scripts/visualisation/caps_graph.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
import os, sys
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
try:
sys.path.append('/home/pi/Pigrow/scripts/')
Expand Down
4 changes: 3 additions & 1 deletion scripts/visualisation/humid_graph.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/python
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import datetime
import numpy as np
Expand Down Expand Up @@ -100,7 +102,7 @@ def add_log(linktolog):
print('Log starts - ' + str(log_date[0].strftime("%b-%d %H:%M")) + ' to ' + str(log_date[-1].strftime("%b-%d %H:%M")))
else:
print("No data, no graph...")
exit()
exit()

def make_graph(da,ta):
plt.figure(1)
Expand Down
2 changes: 2 additions & 0 deletions scripts/visualisation/pi_eye_graph.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/python
import datetime
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import os
import sys
Expand Down
2 changes: 2 additions & 0 deletions scripts/visualisation/selflog_graph.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/usr/bin/python
import os, sys
import datetime
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
try:
sys.path.append('/home/pi/Pigrow/scripts/')
Expand Down
2 changes: 2 additions & 0 deletions scripts/visualisation/temp_graph.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/python
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
import datetime
import numpy as np
Expand Down

0 comments on commit 9226c4b

Please sign in to comment.