I have this live updating plot which reads from a CSV file, is there a good way to directly insert this into a PyQt Gui?
import random
from itertools import count
import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.animation import FuncAnimation
plt.style.use('fivethirtyeight')
def animate(i):
data = pd.read_csv('data.csv')
x = data['x_value']
y1 = data['total_1']
plt.cla()
plt.plot(x, y1, label='Channel 1')
plt.legend(loc='upper left')
plt.tight_layout()
ani = FuncAnimation(plt.gcf(), animate, interval=100)
plt.tight_layout()
plt.show()