質問編集履歴

1

Snvjkadnjvnkjnvkl

2021/12/25 01:07

投稿

ngm_programmer
ngm_programmer

スコア5

test CHANGED
File without changes
test CHANGED
@@ -1,4 +1,4 @@
1
- ValueError: x and y must have same first dimension, but have shapes (70,) and (10, 14)と表示されてしまい、グラフが表示されません。どうしたら表示されますでしょうか。
1
+ ValueError: x and y must have same first dimension, but have shapes と表示されてしまい、グラフが表示されません。どうしたら表示されますでしょうか。
2
2
 
3
3
  よろしくお願いいたします。
4
4
 
@@ -13,8 +13,6 @@
13
13
  import japanize_matplotlib
14
14
 
15
15
 
16
-
17
- thp = pd.read_csv("https://www.data.jma.go.jp/fcd/yoho/typhoon/statistics/generation/generation.csv", encoding="Shift-JIS")
18
16
 
19
17
 
20
18
 
@@ -36,19 +34,7 @@
36
34
 
37
35
 
38
36
 
39
- plt.plot(x, thp50, label = "1950年代の台風の数", c = "red", tick_label = manth)
40
-
41
- plt.plot(x, thp10, label = "2010年代の台風の数", c = "blue", tick_label = manth)
42
-
43
- plt.xlim(0, 31)
37
+ p
44
-
45
- plt.ylim(0, 31)
46
-
47
- plt.grid(c="0.7", ls="dotted")
48
-
49
- plt.xlabel("月")
50
-
51
- plt.ylabel("発生数")
52
38
 
53
39
 
54
40