質問編集履歴
1
エラーメッセージを追加しました。よろしくお願いします
test
CHANGED
File without changes
|
test
CHANGED
@@ -10,6 +10,26 @@
|
|
10
10
|
### 発生している問題・エラーメッセージ
|
11
11
|
|
12
12
|
```
|
13
|
+
ValueError Traceback (most recent call last)
|
14
|
+
Cell In [42], line 23
|
15
|
+
21 x_sort = np.sort(G1)
|
16
|
+
22 ecdf = np.arange(1, n[i]+1) / n[i]
|
17
|
+
---> 23 plt.plot(G1, ecdf, drawstyle='steps-pre')
|
18
|
+
24 xx = np.linspace(-2, 2, 100)
|
19
|
+
25 norm_cdf = norm.cdf(xx)
|
20
|
+
|
21
|
+
packages\matplotlib\pyplot.py:2728, in plot(scalex, scaley, data, *args, **kwargs)
|
22
|
+
2726 @_copy_docstring_and_deprecators(Axes.plot)
|
23
|
+
2727 def plot(*args, scalex=True, scaley=True, data=None, **kwargs):
|
24
|
+
-> 2728 return gca().plot(
|
25
|
+
2729 *args, scalex=scalex, scaley=scaley,
|
26
|
+
2730 **({"data": data} if data is not None else {}), **kwargs)
|
27
|
+
...
|
28
|
+
506 if x.ndim > 2 or y.ndim > 2:
|
29
|
+
507 raise ValueError(f"x and y can be no greater than 2D, but have "
|
30
|
+
508 f"shapes {x.shape} and {y.shape}")
|
31
|
+
|
32
|
+
|
13
33
|
ValueError: x and y must have same first dimension, but have shapes (10000,) and (10,)
|
14
34
|
```
|
15
35
|
|