From 1419728acd24b8ab6c9125acf0d24ab316900cdd Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 18 Jan 2022 08:49:05 -0500 Subject: grid is forced for plots --- .gitignore | 2 +- qolab/data/trace.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 6f1ff95..1869024 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ __pycache__ dist/ -data/ +./data/ .fuse_* diff --git a/qolab/data/trace.py b/qolab/data/trace.py index 0b0a163..67d9301 100644 --- a/qolab/data/trace.py +++ b/qolab/data/trace.py @@ -132,7 +132,7 @@ class Trace: plt.xlabel('index') plt.ylabel(f"{self.config['unit']}") plt.legend() - plt.grid() + plt.grid(True) def getConfig(self): d ={} @@ -194,7 +194,7 @@ class TraceXY(Trace): plt.xlabel(f"{self.x.config['label']} ({self.x.config['unit']})") plt.ylabel(f"{self.y.config['label']} ({self.y.config['unit']})") plt.legend() - plt.grid() + plt.grid(True) def getConfig(self): config = {} @@ -272,7 +272,7 @@ class TraceSetSameX(Trace): p=axs[cnt].plot(x, tr.values, label=k) axs[cnt].set_ylabel(f"{tr.config['label']} ({tr.config['unit']})") axs[cnt].legend() - axs[cnt].grid() + axs[cnt].grid(True) cnt+=1 plt.xlabel(f"{self.x.config['label']} ({self.x.config['unit']})") -- cgit v1.2.3