aboutsummaryrefslogtreecommitdiff
path: root/api.py
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2024-03-27 13:31:41 -0600
committerNavan Chauhan <navanchauhan@gmail.com>2024-03-27 13:31:41 -0600
commit013f2cc8c4d9bc3a08c59cf86072c59977c19074 (patch)
tree096f804110ed22bb4e66df513e462ba3d3f67caf /api.py
parent6e584599576b8da67395e138ad87e63b92e7aa74 (diff)
fix padding
Diffstat (limited to 'api.py')
-rw-r--r--api.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/api.py b/api.py
index b701d0a..be5f3eb 100644
--- a/api.py
+++ b/api.py
@@ -127,8 +127,9 @@ def plot_data(x_data, y_data, std_dev_data, color_picker, labels, df,
labels = [h.get_label() for h in handles]
ax.legend(handles, labels, loc='best', prop=times_new_roman)
- fig.patch.set_facecolor(plot_background_color)
- fig.tight_layout(pad=3.0)
+ if not special_mode:
+ fig.patch.set_facecolor(plot_background_color)
+ fig.tight_layout(pad=3.0)
#ax.invert_xaxis()
@@ -136,17 +137,12 @@ def plot_data(x_data, y_data, std_dev_data, color_picker, labels, df,
ax.set_yscale(y_axis_scale)
if special_mode:
- #ax.grid(linestyle="dashed", dashes=(5,3))
-
# Hide title, x label, y label
ax.legend().set_visible(False)
ax.set_title("")
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)