I want to update same window every time aka Live plot
按原样导入 plotly.graph_objects
导入连续剧
导入时间
ser = serial.Serial('COM7', 9600)
虽然正确:
ser.write(bytearray('Zload '.encode()))
Y = ser.readline().decode('utf-8')
Y = Y.replace(" ", "") # 如果不需要则什么都不做
Z = 复数(Y)
real_part = Z.real/(50)
imag_part = Z.imag/(50)
打印(真实部分)
打印(图像部分)
fig = go.Figure(go.Scattersmith(imag=[str((real_part))], real=[str((imag_part))]))
time.sleep(1)
图.show()