The graph plotter from dzhu's myo-raw refactored into a class to be used independently
drawLines = True & curve = False
drawLines = False
python setup.py install
and if you have to install it as root use
sudo -H python setup.py install
if you don't use the -H
flag you'll only be able to import it as root.
from MyoGrapher import MyoGrapher
mg = MyoGrapher()
#for generic use
mg.plot(values, drawLines=False, curve=True)
#for myo use
mg.emg_plot(values, drawLines=False, curve=True)
You can either use a list of floating numbers as values, or even a single floating number value. MyoGrapher splits the screen accordingly.