From 443c992a4bd4f0a4ce7b55aee432dd7f9a8f9771 Mon Sep 17 00:00:00 2001 From: Valentin Schneider Date: Wed, 13 Dec 2017 17:48:42 +0000 Subject: [PATCH] tests/eas/generic: Fix matplotlib import tests/eas/ was missing an __init__.py, which meant the backend set in tests/__init__.py wouldn't be used. This commit also removes the fill_between() call that is used to draw the expected_placement figure, as it seems the desired behaviour is not supported with the Agg backend ("Unknown property step"). --- tests/eas/__init__.py | 0 tests/eas/generic.py | 1 - 2 files changed, 1 deletion(-) create mode 100644 tests/eas/__init__.py diff --git a/tests/eas/__init__.py b/tests/eas/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tests/eas/generic.py b/tests/eas/generic.py index b5cc1315d4..d2bf7180cb 100644 --- a/tests/eas/generic.py +++ b/tests/eas/generic.py @@ -306,7 +306,6 @@ def plot_expected_util(self, experiment, util_df): color = 'red' tdf.plot(ax=ax[cpu], drawstyle='steps-post', title="CPU{}".format(cpu), color=color) - ax[cpu].fill_between(tdf.index, tdf, 0, step='post', color=color) ax[cpu].set_ylabel('Utilization') # Grey-out areas where utilization == 0