Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import numpy as np
- import matplotlib.pyplot as plt
- import os, re
- speed = 0.001
- conts = []
- x = []
- for i in range(18): # ใใกใคใซ 0.001 ~ 0.01
- x = x.append(i)
- dir = 'stop-data' + str(speed) + '/'
- num_lines = 0
- for j in range(1, 10357):
- num_lines += sum(1 for line in open(dir + str(j) + '-stopped.txt'))
- conts = conts.append(num_lines)
- y = conts
- plt.plot(x, y)
Add Comment
Please, Sign In to add comment