From c3805dfd74df57532a247637515881be44a55724 Mon Sep 17 00:00:00 2001 From: "Felipe S. Prado" Date: Tue, 23 Aug 2016 08:39:19 +0200 Subject: [PATCH] Small fixes --- DRAMSys/analyzer/scripts/plots.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/DRAMSys/analyzer/scripts/plots.py b/DRAMSys/analyzer/scripts/plots.py index b56fb7fd..f77a2d79 100755 --- a/DRAMSys/analyzer/scripts/plots.py +++ b/DRAMSys/analyzer/scripts/plots.py @@ -75,7 +75,7 @@ def memory_utilisation_window(connection, tracePath): outputFile = "Output file is {0}".format(OUTPUT_FILE) - '''import matplotlib.pyplot as plt + import matplotlib.pyplot as plt import numpy as np from matplotlib.backends.backend_pdf import PdfPages @@ -101,7 +101,7 @@ def memory_utilisation_window(connection, tracePath): pdf = PdfPages(OUTPUT_FILE) pdf.savefig() pdf.close() - plt.close()''' + plt.close() return outputFile @@ -135,7 +135,7 @@ def power_window(connection, tracePath): OUTPUT_FILE = 'power_' + basename + '.pdf' outputFile = "\n" + "Output file is {0}".format(OUTPUT_FILE) - '''import matplotlib.pyplot as plt + import matplotlib.pyplot as plt from matplotlib.backends.backend_pdf import PdfPages plt.plot(time, power) @@ -145,7 +145,7 @@ def power_window(connection, tracePath): pdf = PdfPages(OUTPUT_FILE) pdf.savefig() pdf.close() - plt.close()''' + plt.close() return outputFile # @plot