aboutsummaryrefslogtreecommitdiff
path: root/eitControl.py
diff options
context:
space:
mode:
authorEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-13 17:44:13 -0400
committerEugeniy E. Mikhailov <evgmik@gmail.com>2021-06-13 17:44:13 -0400
commitaa4671192091f02560a7cbf99d63a77eed9b26dc (patch)
tree04adb71e7568827c22c66f66bc283cc5f361e10d /eitControl.py
parent8e3277ab420c1031ca7072cbefa46679a0f3b6fd (diff)
downloadpyExpControl-aa4671192091f02560a7cbf99d63a77eed9b26dc.tar.gz
pyExpControl-aa4671192091f02560a7cbf99d63a77eed9b26dc.zip
simplified autoZoom
Diffstat (limited to 'eitControl.py')
-rw-r--r--eitControl.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/eitControl.py b/eitControl.py
index 8ea92ff..780149b 100644
--- a/eitControl.py
+++ b/eitControl.py
@@ -186,16 +186,7 @@ class Experiment:
# print("onTic DAQ took %s seconds." % (runTime) )
def autoZoom(self):
- self.ax.cla()
- x = self.data['x']
- for name in self.channelsNames2plot:
- if name not in self.data:
- continue
- y = self.data[name]
- # self.lines2plot[name], = self.ax.plot(x, y, '.', label=name)
- self.ax.legend()
- plt.xlabel(self.xlabel)
- self.canvas.draw()
+ self.dataPlot.autoRange()
def updatePlot(self,swp=None):
self.color += 1