python graph (animation effect) - realtime data


python graph (animation effect) - realtime data

using this source code, you can paint graph (real time) / accummulate data along time # This function is called periodically from FuncAnimation def animate(i, xs, ys): ########################### first -> paint graph # plt.subplot(211) # if you need to add graph -> use this plt.plot(x_data, y_data, color='blue', linewidth='0.5') plt.xlim(0, 100 # x axis range plt.ylim(0, 100) # y axis range # plt.xlabel('Weight') #x label # plt.ylabel('Height') #y label plt.title("name of graph") ############ na...


#x #y

원문링크 : python graph (animation effect) - realtime data