Skip to content

Commit 06d920f

Browse files
authored
Merge pull request #146 from faster-cpython/match-x-axes
Align x axes on config plots
2 parents 499c544 + 5d3492c commit 06d920f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: bench_runner/plot.py

+5
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,11 @@ def get_comparison_value(ref, r):
376376

377377
fig.suptitle(title)
378378

379+
minx = min(ax.get_xlim()[0] for ax in axs)
380+
maxx = max(ax.get_xlim()[1] for ax in axs)
381+
for ax in axs:
382+
ax.set_xlim((minx, maxx))
383+
379384
plt.savefig(output_filename, dpi=150)
380385
plt.close()
381386

0 commit comments

Comments
 (0)