daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Jan 20th, 2019 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3. import os, re
  4.  
  5. speed = 0.001
  6. conts = []
  7. x = []
  8. for i in range(18):  # ファイル 0.001 ~ 0.01
  9.     x = x.append(i)
  10.     dir = 'stop-data' + str(speed) + '/'
  11.     num_lines = 0
  12.     for j in range(1, 10357):
  13.         num_lines += sum(1 for line in open(dir + str(j) + '-stopped.txt'))
  14.  
  15.     conts = conts.append(num_lines)
  16.  
  17. y = conts
  18. plt.plot(x, y)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top