From 6cd6df4b89d80067126d0b42b277f0ed1b1f23ca Mon Sep 17 00:00:00 2001 From: Paul ALNET Date: Sun, 4 Jun 2023 08:39:29 +0200 Subject: [PATCH] fix: better legend placement on graphs --- Probas.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Probas.py b/Probas.py index f7009c0..f3ebd2c 100755 --- a/Probas.py +++ b/Probas.py @@ -285,7 +285,7 @@ def stats_NFDBP(R, N, t_i): P ) ) - ax.legend(loc="upper left", title="Legend") + ax.legend(loc="upper right", title="Legend") # Mathematical P(Ti=k) plot. It shows the Ti(t_i) law with the probability of each number of items. print(len(Tk[t_i])) @@ -310,7 +310,7 @@ def stats_NFDBP(R, N, t_i): bx.set_title( "T{} histogram for {} items (Number of items in each bin)".format(t_i, P) ) - bx.legend(loc="upper left", title="Legend") + bx.legend(loc="upper right", title="Legend") # Loi mathematique print(T_maths) @@ -333,7 +333,7 @@ def stats_NFDBP(R, N, t_i): cx.set_ylabel("P(T{}=i)".format(t_i)) cx.set_xlabel("Bins i=(1-{})".format(N)) cx.set_title("Theoretical T{} values in %".format(t_i)) - cx.legend(loc="upper left", title="Legend") + cx.legend(loc="upper right", title="Legend") plt.show()