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

回答編集履歴

2

コードの修正

2020/12/07 00:21

投稿

autumn_nsn
autumn_nsn

スコア335

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(ticker.MultipleLocator(50))
13
+ plt.gca().xaxis.set_major_locator(plt.MultipleLocator(50))
13
- plt.gca().xaxis.set_minor_locator(ticker.MultipleLocator(25))
14
+ plt.gca().xaxis.set_minor_locator(plt.MultipleLocator(25))
14
- plt.gca().yaxis.set_major_locator(ticker.MultipleLocator(50))
15
+ plt.gca().yaxis.set_major_locator(plt.MultipleLocator(50))
15
- plt.gca().yaxis.set_minor_locator(ticker.MultipleLocator(25))
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

グラフの追加

2020/12/07 00:21

投稿

autumn_nsn
autumn_nsn

スコア335

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
+ ![イメージ説明](b3b966d54036c6f22eb29a212a734165.png)