Script execution

This commit is contained in:
sfop
2016-09-23 09:13:22 +02:00
parent 0908ab2f2c
commit 7a2786d580
+4 -2
View File
@@ -11,8 +11,10 @@ if get_context().source == CommandSource.ui:
window = 40
p = plot(None, "Data")[0]
if isinstance(dx, basestring): dx = Channel(dx)
if isinstance(dy, basestring): dy = Channel(dy)
if isinstance(dx, basestring):
dx = Channel(dx) if get_device(dx) is None else get_device(dx)
if isinstance(dy, basestring):
dy = Channel(dy) if get_device(dy) is None else get_device(dy)
sd=p.getSeries(0)
sd.setLinesVisible(False)