From 844fbae9e11bbe9953395a188e46df23be2f0aa9 Mon Sep 17 00:00:00 2001 From: johannah Date: Thu, 22 Oct 2015 16:19:40 +0200 Subject: [PATCH] added colorblind compatibility --- examples/text/document_classification_20newsgroups.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/text/document_classification_20newsgroups.py b/examples/text/document_classification_20newsgroups.py index 94b21e1b52a49..6e0020598925e 100644 --- a/examples/text/document_classification_20newsgroups.py +++ b/examples/text/document_classification_20newsgroups.py @@ -298,9 +298,10 @@ def benchmark(clf): plt.figure(figsize=(12, 8)) plt.title("Score") -plt.barh(indices, score, .2, label="score", color='r') -plt.barh(indices + .3, training_time, .2, label="training time", color='g') -plt.barh(indices + .6, test_time, .2, label="test time", color='b') +plt.barh(indices, score, .2, label="score", color='navy') +plt.barh(indices + .3, training_time, .2, label="training time", + color='c') +plt.barh(indices + .6, test_time, .2, label="test time", color='darkorange') plt.yticks(()) plt.legend(loc='best') plt.subplots_adjust(left=.25)