aboutsummaryrefslogtreecommitdiff
path: root/qolab/data
diff options
context:
space:
mode:
Diffstat (limited to 'qolab/data')
-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: