teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

コード修正

2018/09/04 09:33

投稿

aine_
aine_

スコア22

title CHANGED
File without changes
body CHANGED
@@ -4,17 +4,20 @@
4
4
  IOError: file_name not found.
5
5
  コードはまだ読みこむ段階ですが以下の通りです
6
6
 
7
+ ```python
7
8
  import numpy as np
8
9
  import matplotlib.pyplot as plt
9
10
  book_list=[]
10
11
  for i in range(1,11):
11
12
       file_name="file%d.csv" %(i)
12
13
       book_list.append(np.genfromtxt("file_name",delimiter=",",skip_header=55,skip_footer=3,usecols=[2]))
14
+ ```
13
15
 
14
16
 
15
17
 
16
18
  一つずつやったコードは以下の通りです
17
19
 
20
+ ```python
18
21
  import numpy as np
19
22
  import matplotlib.pyplot as plt
20
23
 
@@ -42,4 +45,5 @@
42
45
  y = [0,2,4,6,8,10,12,14,16,18]
43
46
  x = [ave_x1,ave_x2,ave_x3,ave_x4,ave_x5,ave_x6,ave_x7,ave_x8,ave_x9,ave_x10]
44
47
 
45
- plt.scatter (x,y)
48
+ plt.scatter (x,y)
49
+ ```