diff --git a/pyproject.toml b/pyproject.toml index 9655552..41c6d22 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta" [project] name = "moveroplot" -version = "1.1.3" +version = "1.1.4" description = "Movero-plot" readme = "README.md" keywords = [ diff --git a/src/moveroplot/config/plot_settings.py b/src/moveroplot/config/plot_settings.py index 6415fb0..cca538f 100644 --- a/src/moveroplot/config/plot_settings.py +++ b/src/moveroplot/config/plot_settings.py @@ -1,14 +1,16 @@ """Static configurations settings for plots.""" modelcolors: list[str] = [ - "black", - "red", - "blue", - "green", - "cyan", - "yellow", - "magenta", - "orange", + "tab:red", + "tab:blue", + "tab:orange", + "tab:green", + "tab:purple", + "tab:brown", + "tab:pink", + "tab:gray", + "tab:olive", + "tab:cyan", ] line_styles: list[str] = ["-", ":", "--", "-."] diff --git a/src/moveroplot/parse_inputs.py b/src/moveroplot/parse_inputs.py index 1b5de50..527de1a 100644 --- a/src/moveroplot/parse_inputs.py +++ b/src/moveroplot/parse_inputs.py @@ -86,6 +86,16 @@ def _parse_inputs( """ ) plot_settings.modelcolors = color_list + else: + if len(all_model_versions) > len(plot_settings.modelcolors): + raise ValueError( + f""" + The number of model versions is larger than the + number of predefined colors for plotting + ({len(all_model_versions)} > {len(plot_settings.modelcolors)}) + """ + ) + plot_models_setup = [ model_combinations.split("/") for model_combinations in model_versions.split(",")