Mercurial > ~darius > hgwebdir.cgi > pyinst
comparison logpps.py @ 70:6ffa6fcf278e
Move pylab import to where graphing is so we don't need an X server
author | Daniel O'Connor <doconnor@gsoft.com.au> |
---|---|
date | Mon, 30 Aug 2021 12:40:43 +0930 |
parents | 7386f2888508 |
children |
comparison
equal
deleted
inserted
replaced
69:7386f2888508 | 70:6ffa6fcf278e |
---|---|
31 # delta12 NUMERIC(15, 12), | 31 # delta12 NUMERIC(15, 12), |
32 # delta13 NUMERIC(15, 12) | 32 # delta13 NUMERIC(15, 12) |
33 # ); | 33 # ); |
34 | 34 |
35 import datetime | 35 import datetime |
36 import matplotlib.pylab as pylab | |
37 import numpy | 36 import numpy |
38 import psycopg2 | 37 import psycopg2 |
39 #import sqlite3 | 38 #import sqlite3 |
40 import sys | 39 import sys |
41 import time | 40 import time |
78 # TEK2024B doesn't grok HOR:DIV? so hard code 10 (has 8 vertically) | 77 # TEK2024B doesn't grok HOR:DIV? so hard code 10 (has 8 vertically) |
79 acqwindow = hscale * 10.0 | 78 acqwindow = hscale * 10.0 |
80 | 79 |
81 while True: | 80 while True: |
82 arys = acquire(u, vscales) | 81 arys = acquire(u, vscales) |
82 #import matplotlib.pylab as pylab | |
83 #for a in arys: | 83 #for a in arys: |
84 # pylab.plot(a) | 84 # pylab.plot(a) |
85 #pylab.show() | 85 #pylab.show() |
86 sampletime = acqwindow / len(arys[0]) | 86 sampletime = acqwindow / len(arys[0]) |
87 deltas = [] | 87 deltas = [] |