diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-01-18 08:49:05 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2022-01-18 08:49:44 -0500 |
commit | 1419728acd24b8ab6c9125acf0d24ab316900cdd (patch) | |
tree | 3457fe8e86ccec9db47d1751f91ea2747a491ff0 /qolab/data/trace.py | |
parent | 7f60f4f4ad6bf4ed523e70ee7bd4a70c4dc22bb4 (diff) | |
download | qolab-1419728acd24b8ab6c9125acf0d24ab316900cdd.tar.gz qolab-1419728acd24b8ab6c9125acf0d24ab316900cdd.zip |
grid is forced for plots
Diffstat (limited to 'qolab/data/trace.py')
-rw-r--r-- | qolab/data/trace.py | 6 |
1 files changed, 3 insertions, 3 deletions
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']})") |