回答編集履歴
2
コードの修正
answer
CHANGED
@@ -6,13 +6,14 @@
|
|
6
6
|
plt.ylabel("y")
|
7
7
|
plt.xlim(0, 205)
|
8
8
|
plt.ylim(0, 205)
|
9
|
+
|
9
10
|
# plt.xticks(np.arange(0, 205,50))
|
10
11
|
# plt.yticks(np.arange(0, 205,50))
|
11
12
|
|
12
|
-
plt.gca().xaxis.set_major_locator(
|
13
|
+
plt.gca().xaxis.set_major_locator(plt.MultipleLocator(50))
|
13
|
-
plt.gca().xaxis.set_minor_locator(
|
14
|
+
plt.gca().xaxis.set_minor_locator(plt.MultipleLocator(25))
|
14
|
-
plt.gca().yaxis.set_major_locator(
|
15
|
+
plt.gca().yaxis.set_major_locator(plt.MultipleLocator(50))
|
15
|
-
plt.gca().yaxis.set_minor_locator(
|
16
|
+
plt.gca().yaxis.set_minor_locator(plt.MultipleLocator(25))
|
16
17
|
|
17
18
|
plt.gca().tick_params(which='both', direction = "in")
|
18
19
|
```
|
1
グラフの追加
answer
CHANGED
@@ -15,4 +15,6 @@
|
|
15
15
|
plt.gca().yaxis.set_minor_locator(ticker.MultipleLocator(25))
|
16
16
|
|
17
17
|
plt.gca().tick_params(which='both', direction = "in")
|
18
|
-
```
|
18
|
+
```
|
19
|
+
|
20
|
+

|