Yes, your approach might work, as matplotlib should be smart enough to be able to plot a list containing multiple values in each element:
a = []
for _ in range(10):
    a.append([torch.randn(1).item(), torch.randn(1).item(), torch.randn(1).item()])

plt.plot(a)