Dear all
I have downloaded matplot lib for python2.7.2 windows using[(http://matplotlib.org/downloads.html)]Click Here . As per example i tried coding i found pyplot is not highlighted.i have attached test.cv file for which graph has to be plotted
import csv
import matplotlib.pyplot as plt
plt.figure()
def main():
pass
if __name__ == '__main__':
main()
file =open("test.csv","r+")
TIME=[]
ACT_ANGLE=[]
DES_ANGLE=[]
for line in reader:
TIME.append(line[1])
print TIME
ACT_ANGLE.append(line[2])
DES_ANGLE.append(line[3])
x=TIME
z=ACT_ANGLE
#print x
y=DES_ANGLE
plt.plot(x,y)
plt.xlabel('Time in Sec')
plt.show()
plt.savefig("example.png")
error report given below
Traceback (most recent call last):
File "C:\Documents and Settings\Administrator\My Documents\python code\m2.py", line 2, in <module>
File "C:\Python27\lib\site-packages\matplotlib\__init__.py", line 125, in <module>
raise ImportError("matplotlib requires pyparsing")
ImportError: matplotlib requires pyparsing