From f8ba163ff59319d2093d39b88ffab9720da3e4ff Mon Sep 17 00:00:00 2001 From: "Montare, Aidan A. (Fed)" Date: Fri, 3 May 2024 16:45:55 -0600 Subject: [PATCH] fix #128 --- allantools/plot.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/allantools/plot.py b/allantools/plot.py index 7e36e34..85a201e 100644 --- a/allantools/plot.py +++ b/allantools/plot.py @@ -93,8 +93,12 @@ def plot(self, atDataset, **kwargs) self.ax.set_xlabel("Tau") self.ax.set_ylabel(atDataset.out["stat_id"]) - self.ax.grid(grid, which="minor", ls="-", color='0.65') - self.ax.grid(grid, which="major", ls="-", color='0.25') + + if grid: + self.ax.grid(True, which="minor", ls="-", color='0.65') + self.ax.grid(True, which="major", ls="-", color='0.25') + else: + self.ax.grid(False) def show(self): """Calls matplotlib.pyplot.show()