Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import matplotlib.pyplot as graf
- f=open("grafic","r")
- a=[]
- for s in f:
- a+=s.rstrip().split(",")
- a=[float(x) for x in a]
- a.sort()
- y=[1/30*i for i in range(30)]
- t=0
- for i in range(30):
- graf.plot([t,a[i]],[y[i],y[i]],"black")
- t=a[i]
- print(y);
- graf.plot([0,1],[0,1],"red")
- graf.grid()
- graf.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement