From 8a6a9291077016de37a1d0c078eab6eb86372ebc Mon Sep 17 00:00:00 2001 From: Juan Gomez <{789543}+{2357juan}@users.noreply.github.com> Date: Wed, 15 Mar 2023 20:35:13 -0700 Subject: [PATCH] fixing overlapping plot y axis which makes the benchmark uninterpretable --- benchmarks/bench_sample_without_replacement.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmarks/bench_sample_without_replacement.py b/benchmarks/bench_sample_without_replacement.py index 4f1041a6d1022..6e68073c93860 100644 --- a/benchmarks/bench_sample_without_replacement.py +++ b/benchmarks/bench_sample_without_replacement.py @@ -208,7 +208,7 @@ def bench_sample(sampling, n_population, n_samples): print("") fig = plt.figure("scikit-learn sample w/o replacement benchmark results") - plt.title("n_population = %s, n_times = %s" % (opts.n_population, opts.n_times)) + fig.suptitle("n_population = %s, n_times = %s" % (opts.n_population, opts.n_times)) ax = fig.add_subplot(111) for name in sampling_algorithm: ax.plot(ratio, time[name], label=name)