Python MatPlotLib Data From File Tutorial 7

Publié le: 24 juillet 2016
sur la chaîne: MyStudy
8,326
73

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


Sur cette page du site, vous pouvez voir la vidéo en ligne Python MatPlotLib Data From File Tutorial 7 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur MyStudy 24 juillet 2016, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 8,326 fois et il a aimé 73 téléspectateurs. Bon visionnage!