Python script to plot a numeric data received from a serial port in real time.
To use, simply run command below in the command line providing serial port to be used and optionally port baud rate and timeout values.
$ ./wx_mpl_dynamic_graph.py [-h] [-b BAUDRATE] [-t TIMEOUT] portFor instance, to receive data from com4 port with baud rate equal to 9600 run
$ ./wx_mpl_dynamic_graph.py com4 --baudrate 9600To display help menu run the command below.
$ ./wx_mpl_dynamic_graph.py --helpNote: Make sure you have your Arduino IDE closed, or it will block other programs like this one from using the serial port.
Install required wxPython Project Phoenix system dependencies and than Python packages from requirements.txt file:
$ pip install -r requirements.txt