Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions qcodes/loops.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
from qcodes.data.data_array import DataArray
from qcodes.utils.helpers import wait_secs, full_class, tprint
from qcodes.utils.metadata import Metadatable
from qcodes.plots.qcmatplotlib import MatPlot

from .actions import (_actions_snapshot, Task, Wait, _Measure, _Nest,
BreakIf, _QcodesBreak)
Expand Down Expand Up @@ -223,6 +224,11 @@ def with_bg_task(self, task, bg_final_task=None, min_delay=0.01):
"""
return _attach_bg_task(self, task, bg_final_task, min_delay)

def plot(self, *args, min_delay=0.5, **kwargs):
plot = MatPlot(*args, **kwargs)
self.with_bg_task(plot.update, min_delay=min_delay)
return plot

@staticmethod
def validate_actions(*actions):
"""
Expand Down