파이썬에서 실시간 그래프(센서 데이터 등)를 출력하는 방법을 말씀드리겠습니다. (matplotlib animation 이용) Import import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation figure 설정 그래프 틀 만드는거라고 보면 됨 fig, ax = plt.subplots() ax.set_xlim(0,100) ax.set_ylim(-3,3) matplotlib 의 subplot을 생성하여 subplot에 그래프 생성 예정 Data 입력 받을 list 생성 x = [0] y = [0] x는 index, y는 받은 데이터로 사용 예정 함수 생성(데이터 표기) def animate(i, x, y): y_data =..