From f7ba19b103e7b7dc5d839325fc60f607c0186145 Mon Sep 17 00:00:00 2001 From: rasmusthog Date: Sun, 23 Oct 2022 18:04:56 +0200 Subject: [PATCH] Fix small bug in colour generation --- nafuma/electrochemistry/plot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nafuma/electrochemistry/plot.py b/nafuma/electrochemistry/plot.py index 9ab421f..8c7f860 100644 --- a/nafuma/electrochemistry/plot.py +++ b/nafuma/electrochemistry/plot.py @@ -618,9 +618,9 @@ def generate_colours(options): discharge_colour = options['colours'][1] if isinstance(charge_colour, tuple): - charge_colour = [charge_colour] + charge_colour = list(charge_colour) if isinstance(discharge_colour, tuple): - discharge_colour = [discharge_colour] + discharge_colour = list(discharge_colour) else: charge_colour = [(40/255, 70/255, 75/255)] # Dark Slate Gray #28464B, coolors.co