aboutsummaryrefslogtreecommitdiff
path: root/qolab
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-21 23:34:48 -0500
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-12-21 23:34:48 -0500
commit7c0c4d3ed5fe350ba132fab97ab9d4da33cc7aaf (patch)
treebf145d284944c588314e6f8abcad78af4efbbbec /qolab
parent9e886376eba4dc884ed887fd09062882f7088e8b (diff)
downloadqolab-7c0c4d3ed5fe350ba132fab97ab9d4da33cc7aaf.tar.gz
qolab-7c0c4d3ed5fe350ba132fab97ab9d4da33cc7aaf.zip
fixed plotting into existing figure
Diffstat (limited to 'qolab')
-rw-r--r--qolab/data/trace.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/qolab/data/trace.py b/qolab/data/trace.py
index 37387fa..d771563 100644
--- a/qolab/data/trace.py
+++ b/qolab/data/trace.py
@@ -241,7 +241,8 @@ class TraceSetSameX(Trace):
def plot(self):
import matplotlib.pyplot as plt
nplots = len(self.traces.keys())
- fig, axs = plt.subplots(nplots, 1, sharex=True)
+ fig = plt.gcf()
+ fig, axs = plt.subplots(nplots, 1, sharex=True, num=fig.number)
cnt=0
x=self.x.values
if self.x.config['type'] is not None: