Skip to content

Commit

Permalink
Changed plotting format orientation
Browse files Browse the repository at this point in the history
Signed-off-by: Vedant <vedantnimjed@gmail.com>
  • Loading branch information
vrnimje committed Aug 15, 2024
1 parent 40e38d0 commit 54e422c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/perftests_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]):
Expand All @@ -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]

Expand Down Expand Up @@ -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")

0 comments on commit 54e422c

Please sign in to comment.