mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-21 18:18:41 +00:00
energy_model: set matplotlib backent to AGG
Matplotlib defautls to the GTK backend. This can cause problems when running in a headless session (e.g. over SSH). Since energy_model istrument generates PNG plots, rather than rendering directly to UI, it doesn't actually need GTK; set backend to AGG so that energy_model works in headless environments.
This commit is contained in:
parent
0e751bdd73
commit
485ba419b3
@ -11,6 +11,8 @@ from collections import Counter, namedtuple
|
||||
try:
|
||||
import jinja2
|
||||
import pandas as pd
|
||||
import matplotlib
|
||||
matplotlib.use('AGG')
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
import_error = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user