I am new to many of these python packages. I copied a script that looks like this on a Raspberry Pi Model 3B:
import serial
import numpy
import matplotlib
from pylab import *
from drawnow import drawnow
Data = serial.Serial(/dev/ttyACMO',9600)
plot.ion()
while (1)
if (Data,inWaiting()==0):
pass
DataString = Data.readline()
DataArray = DataString.split(', ')
t = float(DataArray[0])
x = float(DataArray[1])
print(t)
Thony stops executing at line 5. No module name 'drawnow'.
I am using python3.
Any help will be appreciated.
Paul