Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to plot graph using csv file in python

import matplotlib.pyplot as plt
import numpy as np

dataArray = np.genfromtxt('data.csv', delimiter=',', names=True)

plt.figure()
for col_name in dataArray.dtype.names:
    plt.plot(dataArray[col_name], label=col_name)
plt.legend()
plt.show()
 
PREVIOUS NEXT
Tagged: #plot #graph #csv #file #python
ADD COMMENT
Topic
Name
9+5 =