aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--api.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/api.py b/api.py
index 9507e63..b701d0a 100644
--- a/api.py
+++ b/api.py
@@ -77,6 +77,8 @@ def plot_data(x_data, y_data, std_dev_data, color_picker, labels, df,
trendline_equation = None
if enable_trendline:
+ if special_mode:
+ trendline_color = "blue"
if trendline_equation != None:
try:
x = symbols('x')
@@ -95,6 +97,8 @@ def plot_data(x_data, y_data, std_dev_data, color_picker, labels, df,
h, = ax.plot(x,p(x), linestyle="dotted", label="Trendline", color=trendline_color)
handles.append(h)
+
+
light_grey = 0.9
dar_grey = 0.4
@@ -140,6 +144,9 @@ def plot_data(x_data, y_data, std_dev_data, color_picker, labels, df,
ax.set_xlabel("")
ax.set_ylabel("")
+ # revert fig.tight_layout
+ fig.tight_layout(pad=0.0)
+
ax.spines[['right', 'top']].set_visible(False)
ax.tick_params(axis='x', length=0)
ax.tick_params(axis='y', length=0)