FAQ | This is a LIVE service | Changelog

Skip to content
Snippets Groups Projects
Commit b8b51fd9 authored by M.D. Driver's avatar M.D. Driver
Browse files

update colours and label methods.

parent 3be2bffe
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment