This Video Will Explain How to read comma separated file and display in various chart functionality in Matplotlib.
import numpy as np
x, y = np.loadtxt('testdata.txt',delimiter=',',unpack=True)
plt.plot(x,y)
plt.show()
Sample testdata.txt file:
1,4
2,5
3,6
4,1
5,9
6,0
7,-5
8,3
9,2
10,9
On this page of the site you can watch the video online Python MatPlotLib Data From File Tutorial 7 with a duration of hours minute second in good quality, which was uploaded by the user MyStudy 24 July 2016, share the link with friends and acquaintances, this video has already been watched 8,326 times on youtube and it was liked by 73 viewers. Enjoy your viewing!