Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import cvs and matplotlib libary
- import matplotlib.pyplot as plt
- import csv
- listax = []
- listay = []
- f = csv.reader(open('eggs.csv'), delimiter=',')
- for x,y in f:
- listax.append(int(x))
- listay.append(float(y))
- #plotando dados
- plt.plot(listax, listay, linestyle="dashed", marker="o", color="green")
- #configurando Eixo X
- plt.xlim(0.5,4.5)
- plt.xticks(listax)
- #configurando Eixo Y
- plt.ylim(19.8,21.2)
- plt.yticks(listay)
- #show plot
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement