回答編集履歴

3

修正

2020/08/11 12:03

投稿

tiitoi
tiitoi

スコア21956

test CHANGED
@@ -22,7 +22,7 @@
22
22
 
23
23
 
24
24
 
25
- ax2=plot() ではなく、ax2.plot()
25
+ ax2=grid() ではなく、ax2.grid()
26
26
 
27
27
 
28
28
 

2

修正

2020/08/11 12:03

投稿

tiitoi
tiitoi

スコア21956

test CHANGED
@@ -1,18 +1,52 @@
1
1
  このあたりの使い方がおかしいです。
2
+
3
+ plot()、grid() ともに Axes オブジェクトのメソッドです。
2
4
 
3
5
 
4
6
 
5
- ```
7
+ ## 修正箇所
6
8
 
7
- ax2=plot(class_value,cum_rel_freq,ls='--',marker='○',color='gray')
8
9
 
10
+
9
- ax2=grid(visible=False)
11
+ ax2=plot() ではなく、ax2.plot()
12
+
13
+
14
+
15
+ ```diff
16
+
17
+ - ax2=plot(class_value,cum_rel_freq,ls='--',marker='○',color='gray')
18
+
19
+ + ax2.plot(class_value,cum_rel_freq,ls='--',marker='○',color='gray')
10
20
 
11
21
  ```
12
22
 
13
23
 
14
24
 
25
+ ax2=plot() ではなく、ax2.plot()
26
+
27
+
28
+
29
+ ```diff
30
+
15
- plot()、grid() ともに Axes オブジェクトのメソッドです。
31
+ - ax2=grid(visible=False)
32
+
33
+ + ax2.grid(visible=False)
34
+
35
+ ```
36
+
37
+
38
+
39
+ marker="○" (全角の○) ではなく、marker="o" (アルファベットの o)
40
+
41
+
42
+
43
+ ```diff
44
+
45
+ - ax2.plot(class_value, cum_rel_freq, ls="--", marker="○", color="gray")
46
+
47
+ + ax2.plot(class_value, cum_rel_freq, ls="--", marker="o", color="gray")
48
+
49
+ ```
16
50
 
17
51
 
18
52
 

1

修正

2020/08/11 12:02

投稿

tiitoi
tiitoi

スコア21956

test CHANGED
@@ -25,14 +25,6 @@
25
25
  import pandas as pd
26
26
 
27
27
  from matplotlib import pyplot as plt
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
28
 
37
29
 
38
30
 
@@ -78,7 +70,7 @@
78
70
 
79
71
  ax2.set_ylabel("Cumulative relative frequency")
80
72
 
81
- # plt.show()
73
+ plt.show()
82
74
 
83
75
  ```
84
76