From b8b51fd98cd3947516ffd4c4454477b4e9ba11bf Mon Sep 17 00:00:00 2001
From: Mark Driver <mdd31@cam.ac.uk>
Date: Sun, 23 Jul 2017 00:19:53 +0100
Subject: [PATCH] update colours and label methods.

---
 .../polynomialanalysis/polynomialanalysisplotting.py     | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/solventmapcreator/polynomialanalysis/polynomialanalysisplotting.py b/solventmapcreator/polynomialanalysis/polynomialanalysisplotting.py
index 6fb40c9..2c95746 100644
--- a/solventmapcreator/polynomialanalysis/polynomialanalysisplotting.py
+++ b/solventmapcreator/polynomialanalysis/polynomialanalysisplotting.py
@@ -15,7 +15,8 @@ logging.basicConfig()
 LOGGER = logging.getLogger(__name__)
 LOGGER.setLevel(logging.WARN)
 
-COLOUR_LIST = ["r", "b", "g", "c", "m", "y"]
+COLOUR_LIST = ["orangered", "b", "g", "fuchsia", "c", "darkmagenta",
+               "darkorange", "olive", "navy", "forestgreen"]
 
 def create_bar_plot_write_to_file(input_data, filename_stem, **kwargs):
     """This creates the bar plot and saves it to file.
@@ -46,9 +47,9 @@ def create_bar_plot(input_data, **kwargs):
 def add_labels_to_plot(bar_plot_axis, index, order_tuple):
     """This adds the labels to the given axis.
     """
-    bar_plot_axis.ylabel("N")
-    bar_plot_axis.xlabel("polynomial order")
-    bar_plot_axis.xticks(index, order_tuple)
+    bar_plot_axis.set_ylabel("N")
+    bar_plot_axis.set_xlabel("polynomial order")
+    bar_plot_axis.set_xticks(index, order_tuple)
 
 def create_plot_with_axis(figsize):
     """This creates the plot and axis.
-- 
GitLab