diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2024-03-27 13:29:32 -0600 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2024-03-27 13:29:32 -0600 |
commit | 6e584599576b8da67395e138ad87e63b92e7aa74 (patch) | |
tree | 1e0e16980ddd7025bb3099dd9ec1dd50b2bce309 /api.py | |
parent | 5e3955973de93067b50d66d4fc31654ce2a63383 (diff) |
trendline color and padding
Diffstat (limited to 'api.py')
-rw-r--r-- | api.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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) |