How to solve this plotting problem in serial communication?
问题 Here this simple code: #import serial from tkinter import * from matplotlib import pyplot as plt import matplotlib.animation as animation from matplotlib import style from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg import serial fig = plt.gcf() fig.show() fig.canvas.draw() ser = serial.Serial('COM35', 115200, timeout=.1) while True: data = ser.readline() print(data) plt.plot(data) fig.canvas.draw() now when i run this i'm getting something like this..in pic and the data values