From 3e3a90971047c5d1436db585592323e1e18653bb Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 27 Mar 2024 13:38:33 -0600 Subject: specify colour for trendline and error bars --- api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'api.py') diff --git a/api.py b/api.py index be5f3eb..d042795 100644 --- a/api.py +++ b/api.py @@ -57,7 +57,7 @@ def plot_data(x_data, y_data, std_dev_data, color_picker, labels, df, data_series_title = labels[idx] if special_mode: if (std_dev_data[idx] != None): - plot = ax.errorbar(x, y, yerr=df[std_dev_data[idx]].astype(float), fmt='o', ecolor='black', capsize=5, color="navy", label=data_series_title) + plot = ax.errorbar(x, y, yerr=df[std_dev_data[idx]].astype(float), fmt='o', ecolor='navy', capsize=5, color="navy", label=data_series_title) else: plot = ax.plot(x, y, 'o', color="navy", label=data_series_title) else: @@ -78,7 +78,7 @@ def plot_data(x_data, y_data, std_dev_data, color_picker, labels, df, if enable_trendline: if special_mode: - trendline_color = "blue" + trendline_color = "navy" if trendline_equation != None: try: x = symbols('x') -- cgit v1.2.3