From 185fbfa38b66fe3ae998df5119db67938bb3084e Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Mon, 6 Dec 2021 12:58:10 -0500 Subject: added grid to plot --- qolab/data/trace.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'qolab/data/trace.py') 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()) -- cgit v1.2.3