pygpibtoolkit/HP3562A/datablockwidget.py

changeset 49
a682ee5e6a55
parent 47
0ebdbcbb7852
child 66
2a97995628a3
--- a/pygpibtoolkit/HP3562A/datablockwidget.py	Thu Feb 14 19:28:41 2008 +0100
+++ b/pygpibtoolkit/HP3562A/datablockwidget.py	Sat Feb 16 22:17:47 2008 +0100
@@ -294,7 +294,9 @@
 
         y = y.clip(min=self.header[1]['Min value of data'],
                    max=self.header[1]['Max value of data'],)
-        
+
+        if self.header[1]['Y scale factor']:
+            y *= self.header[1]['Y scale factor']
         self.canvas.axes.clear()
         self.canvas.axes.plot(x, y, 'r')
         self.canvas.axes.set_xlim(min(x), max(x))

mercurial