From c888346fcffd1f4f40843615148e6519a6e6419c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Gonz=C3=A1lez?= Date: Tue, 17 Jan 2023 11:03:52 +0100 Subject: [PATCH] solving a bug in show_legend --- quapy/plot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quapy/plot.py b/quapy/plot.py index 794fd4c..c1a857e 100644 --- a/quapy/plot.py +++ b/quapy/plot.py @@ -312,7 +312,7 @@ def error_by_drift(method_names, true_prevs, estim_prevs, tr_prevs, ax.set_xlim(min_x, max_x) - if not show_legend: + if show_legend: ax.legend(loc='center left', bbox_to_anchor=(1, 0.5)) _save_or_show(savepath)