From 0e053ea1e2de77e403900ce13cf95b6b2119da38 Mon Sep 17 00:00:00 2001 From: rasmusvt Date: Tue, 2 Aug 2022 10:03:49 +0200 Subject: [PATCH] Make ticks face in by default --- nafuma/plotting.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nafuma/plotting.py b/nafuma/plotting.py index 4bf0ed9..367b74c 100644 --- a/nafuma/plotting.py +++ b/nafuma/plotting.py @@ -182,8 +182,13 @@ def adjust_plot(fig, ax, options): # Hide x- and y-ticks: if options['hide_y_ticks']: ax.tick_params(axis='y', direction='in', which='both', left=False, right=False) + else: + ax.tick_params(axis='y', direction='in', which='both', left=True, right=True) + if options['hide_x_ticks']: ax.tick_params(axis='x', direction='in', which='both', bottom=False, top=False) + else: + ax.tick_params(axis='x', direction='in', which='both', bottom=True, top=True)