aboutsummaryrefslogtreecommitdiff
path: root/api.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2024-03-27 13:38:33 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2024-03-27 13:38:33 -0600
commit3e3a90971047c5d1436db585592323e1e18653bb (patch)
tree8165fc3d3bee3a3e60b8f5a139ab969e62976849 /api.py
parent013f2cc8c4d9bc3a08c59cf86072c59977c19074 (diff)
specify colour for trendline and error bars
Diffstat (limited to 'api.py')
-rw-r--r--api.py4
1 files changed, 2 insertions, 2 deletions
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')