summaryrefslogtreecommitdiffstats
path: root/dpd/src/Measure.py
diff options
context:
space:
mode:
authorandreas128 <Andreas>2017-08-17 16:28:13 +0200
committerandreas128 <Andreas>2017-08-17 16:28:13 +0200
commit4fe5b4cacad22c84110061cb1cce4c0cf29b79fa (patch)
tree82c7d94d7301fcd5b4cacb92bf6ad55340a1251d /dpd/src/Measure.py
parent2d70a92c178b4cf7460d09efd93a0e7918781a64 (diff)
downloaddabmod-4fe5b4cacad22c84110061cb1cce4c0cf29b79fa.tar.gz
dabmod-4fe5b4cacad22c84110061cb1cce4c0cf29b79fa.tar.bz2
dabmod-4fe5b4cacad22c84110061cb1cce4c0cf29b79fa.zip
Fix plotting without DISPLAY
Diffstat (limited to 'dpd/src/Measure.py')
-rw-r--r--dpd/src/Measure.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/dpd/src/Measure.py b/dpd/src/Measure.py
index 7b5379d..49e2431 100644
--- a/dpd/src/Measure.py
+++ b/dpd/src/Measure.py
@@ -4,6 +4,8 @@ import sys
import socket
import struct
import numpy as np
+import matplotlib
+matplotlib.use('agg')
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
import argparse
@@ -116,7 +118,7 @@ class Measure:
% (len(txframe), txframe.dtype, len(rxframe), rxframe.dtype,
len(txframe_aligned), txframe_aligned.dtype, len(rxframe_aligned), rxframe_aligned.dtype) )
- return txframe_aligned, rxframe_aligned
+ return txframe_aligned, None, rxframe_aligned, None
# The MIT License (MIT)
#