From 49eb72cc20c7950ceb0440cce0b11014cf06972c Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 15 May 2024 11:06:31 -0700 Subject: [PATCH] Updated image file format from SVG to PNG and added imgcat library for displaying the plot. --- benchmark/over_time.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/benchmark/over_time.py b/benchmark/over_time.py index 90504fecc..24558ddce 100644 --- a/benchmark/over_time.py +++ b/benchmark/over_time.py @@ -2,6 +2,7 @@ import matplotlib.pyplot as plt import yaml from datetime import datetime from matplotlib import rc +from imgcat import imgcat def plot_over_time(yaml_file): with open(yaml_file, 'r') as file: @@ -34,7 +35,7 @@ def plot_over_time(yaml_file): ax.set_ylabel('Pass Rate 2') ax.set_title('Model Performance Over Time') plt.tight_layout() - plt.savefig("tmp_over_time.svg") + plt.savefig("tmp_over_time.png") imgcat(fig) # Example usage