From f28a84242fd0ff4c9212e7e8c5c76c30722fdbcf Mon Sep 17 00:00:00 2001
From: Alex Moreo <alejandro.moreo@isti.cnr.it>
Date: Wed, 16 Jun 2021 09:38:13 +0200
Subject: [PATCH] adding more colors to plots

---
 quapy/plot.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/quapy/plot.py b/quapy/plot.py
index 5e51640..8d46ea5 100644
--- a/quapy/plot.py
+++ b/quapy/plot.py
@@ -14,8 +14,9 @@ plt.rcParams['font.size'] = 16
 
 def _set_colors(ax, n_methods):
     NUM_COLORS = n_methods
-    cm = plt.get_cmap('gist_rainbow')
-    ax.set_color_cycle([cm(1. * i / NUM_COLORS) for i in range(NUM_COLORS)])
+    cm = plt.get_cmap('tab20')
+    ax.set_prop_cycle(color=[cm(1. * i / NUM_COLORS) for i in range(NUM_COLORS)])
+
 
 def binary_diagonal(method_names, true_prevs, estim_prevs, pos_class=1, title=None, show_std=True, legend=True,
                     train_prev=None, savepath=None):