diff options
author | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-06 12:58:10 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2021-12-06 12:58:10 -0500 |
commit | 185fbfa38b66fe3ae998df5119db67938bb3084e (patch) | |
tree | 72f1c5dd83b392daffede6affb7a99571c218dea /qolab/data | |
parent | 4b1bc75d1b3a4edd6e129a52ec7385a2042c99a0 (diff) | |
download | pyExpControl-185fbfa38b66fe3ae998df5119db67938bb3084e.tar.gz pyExpControl-185fbfa38b66fe3ae998df5119db67938bb3084e.zip |
added grid to plot
Diffstat (limited to 'qolab/data')
-rw-r--r-- | qolab/data/trace.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qolab/data/trace.py b/qolab/data/trace.py index 623b2af..8478447 100644 --- a/qolab/data/trace.py +++ b/qolab/data/trace.py @@ -12,6 +12,7 @@ class Trace: import matplotlib.pyplot as plt plt.plot(self.values, label=self.descr) plt.legend() + plt.grid() def header(self, prefix=''): header = [] @@ -40,6 +41,7 @@ class TraceXY: plt.plot(self.x.values, self.y.values, label=self.label) plt.legend() plt.xlabel(self.x.label) + plt.grid() def header(self, prefix=''): header = [] @@ -82,6 +84,7 @@ class TraceSetSameX: plt.plot(self.x.values, tr.values, label=tr.label) plt.xlabel(self.x.label) plt.legend() + plt.grid() def items(self): return (self.traces.items()) |