From 7c0c4d3ed5fe350ba132fab97ab9d4da33cc7aaf Mon Sep 17 00:00:00 2001 From: "Eugeniy E. Mikhailov" Date: Tue, 21 Dec 2021 23:34:48 -0500 Subject: fixed plotting into existing figure --- qolab/data/trace.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: -- cgit v1.2.3