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)