aboutsummaryrefslogtreecommitdiff
path: root/qolab/data/trace.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-06 12:58:10 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-06 12:58:10 -0500
commit185fbfa38b66fe3ae998df5119db67938bb3084e (patch)
tree72f1c5dd83b392daffede6affb7a99571c218dea /qolab/data/trace.py
parent4b1bc75d1b3a4edd6e129a52ec7385a2042c99a0 (diff)
downloadqolab-185fbfa38b66fe3ae998df5119db67938bb3084e.tar.gz
qolab-185fbfa38b66fe3ae998df5119db67938bb3084e.zip
added grid to plot
Diffstat (limited to 'qolab/data/trace.py')
-rw-r--r--qolab/data/trace.py3
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())