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

回答編集履歴

1

修正

2021/12/02 23:28

投稿

taront
taront

スコア59

answer CHANGED
@@ -12,11 +12,11 @@
12
12
  plt.scatter(x, y)
13
13
  plt.xlabel('x')
14
14
  plt.ylabel('y')
15
+ plt.axis([0, 512, 512, 0]) #画像サイズに合わせて表示
15
16
  plt.savefig("plot.png", dpi=300)
16
17
  plt.show()
17
18
  ```
18
19
 
19
20
  出力結果
20
21
 
21
-
22
- ![イメージ説明](d9980a4b03c0e6c4ba680bf4c3ed737f.png)
22
+ ![出力結果](1c734542cdba4d635ceef04a3a05b1fa.png)