Commit d3d81783 authored by Tomas Krizek's avatar Tomas Krizek

histogram: support machines with no display

parent 78d7c9bf
......@@ -8,11 +8,16 @@ from typing import Dict, List
import lmdb
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.ticker as mtick
from dbhelper import LMDB
# Force matplotlib to use a different backend to handle machines without a display
# pylint: disable=wrong-import-order,wrong-import-position
import matplotlib
import matplotlib.ticker as mtick
matplotlib.use('Agg')
import matplotlib.pyplot as plt # noqa
def load_data(txn: lmdb.Transaction) -> Dict[str, List[float]]:
data = {} # type: Dict[str, List[float]]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment