From 54e422cbb68bf95f8986037e70fe76757326dd3e Mon Sep 17 00:00:00 2001 From: Vedant Date: Thu, 15 Aug 2024 15:57:42 +0530 Subject: [PATCH] Changed plotting format orientation Signed-off-by: Vedant --- tools/perftests_plot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/perftests_plot.py b/tools/perftests_plot.py index 096bcd14498..724b261e16c 100755 --- a/tools/perftests_plot.py +++ b/tools/perftests_plot.py @@ -34,7 +34,7 @@ def mean_statistic(sample1, sample2, axis=-1): header_flag = True n = ceil(len(json_obj1["outputs"]) / 2) - fig, ax = plt.subplots(n, 2, figsize=(16, 3 * n), sharey=False) + fig, ax = plt.subplots(2, n, figsize=(6 * n, 9), sharey=False) plt.subplots_adjust(hspace=0.3) i = 0 for test1, test2 in zip(json_obj1["outputs"], json_obj2["outputs"]): @@ -54,7 +54,7 @@ def mean_statistic(sample1, sample2, axis=-1): mean1 = np.mean(test1["series"]) if n != 1: - curr_plot = ax[i % n, i // n] + curr_plot = ax[i // n, i % n] else: curr_plot = ax[i] @@ -90,5 +90,5 @@ def mean_statistic(sample1, sample2, axis=-1): plt.tight_layout() [fig.delaxes(a) for a in ax.flatten() if not a.has_data()] - plt.savefig(sys.argv[3] + ".png", dpi=150) + plt.savefig(sys.argv[3] + ".png") \ No newline at end of file