回答編集履歴
1
コードのコメント間違いを修正
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
```Python
|
10
10
|
|
11
|
-
#
|
11
|
+
# Y軸の数字が必ず整数になるようにする
|
12
12
|
|
13
13
|
plt.gca().get_yaxis().set_major_locator(ticker.MaxNLocator(integer=True))↓
|
14
14
|
|
@@ -18,7 +18,7 @@
|
|
18
18
|
|
19
19
|
```Python
|
20
20
|
|
21
|
-
#
|
21
|
+
# Y軸の数字を float型からint型に変換する
|
22
22
|
|
23
23
|
plt.gca().get_yaxis().set_major_formatter(ticker.FuncFormatter(lambda v,p:int(v)))
|
24
24
|
|