From 5e3955973de93067b50d66d4fc31654ce2a63383 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Wed, 27 Mar 2024 13:26:22 -0600 Subject: hide labels --- api.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'api.py') diff --git a/api.py b/api.py index 75d9c1f..9507e63 100644 --- a/api.py +++ b/api.py @@ -132,7 +132,14 @@ 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)) + #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("") + ax.spines[['right', 'top']].set_visible(False) ax.tick_params(axis='x', length=0) ax.tick_params(axis='y', length=0) -- cgit v1.2.3