質問編集履歴
2
ケアレスミスでした
title
CHANGED
File without changes
|
body
CHANGED
@@ -65,30 +65,4 @@
|
|
65
65
|
```
|
66
66
|
|
67
67
|
pythonを始めたばかりでコードが読みにくいと思いますが、
|
68
|
-
よろしくお願いします。
|
68
|
+
よろしくお願いします。
|
69
|
-
|
70
|
-
・・・追記
|
71
|
-
```terminal
|
72
|
-
raceback (most recent call last):
|
73
|
-
File "task.py", line 43, in <module>
|
74
|
-
plt.plot(t_list, u_list, c='green', label='u')
|
75
|
-
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\pyplot.py", line 2813, in plot
|
76
|
-
is not None else {}), **kwargs)
|
77
|
-
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\__init__.py", line 1810, in inner
|
78
|
-
return func(ax, *args, **kwargs)
|
79
|
-
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_axes.py", line 1612, in plot
|
80
|
-
self.add_line(line)
|
81
|
-
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_base.py", line 1895, in add_line
|
82
|
-
self._update_line_limits(line)
|
83
|
-
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_base.py", line 1917, in _update_line_limits
|
84
|
-
path = line.get_path()
|
85
|
-
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\lines.py", line 945, in get_path
|
86
|
-
self.recache()
|
87
|
-
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\lines.py", line 645, in recache
|
88
|
-
y = _to_unmasked_float_array(yconv).ravel()
|
89
|
-
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\cbook\__init__.py", line 1365, in _to_unmasked_float_array
|
90
|
-
return np.asarray(x, float)
|
91
|
-
File "C:\Users\Anaconda3\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
|
92
|
-
return array(a, dtype, copy=False, order=order)
|
93
|
-
TypeError: float() argument must be a string or a number, not 'function'
|
94
|
-
```
|
1
更にエラーが出たので追記させていただきます。
title
CHANGED
File without changes
|
body
CHANGED
@@ -65,4 +65,30 @@
|
|
65
65
|
```
|
66
66
|
|
67
67
|
pythonを始めたばかりでコードが読みにくいと思いますが、
|
68
|
-
よろしくお願いします。
|
68
|
+
よろしくお願いします。
|
69
|
+
|
70
|
+
・・・追記
|
71
|
+
```terminal
|
72
|
+
raceback (most recent call last):
|
73
|
+
File "task.py", line 43, in <module>
|
74
|
+
plt.plot(t_list, u_list, c='green', label='u')
|
75
|
+
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\pyplot.py", line 2813, in plot
|
76
|
+
is not None else {}), **kwargs)
|
77
|
+
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\__init__.py", line 1810, in inner
|
78
|
+
return func(ax, *args, **kwargs)
|
79
|
+
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_axes.py", line 1612, in plot
|
80
|
+
self.add_line(line)
|
81
|
+
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_base.py", line 1895, in add_line
|
82
|
+
self._update_line_limits(line)
|
83
|
+
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_base.py", line 1917, in _update_line_limits
|
84
|
+
path = line.get_path()
|
85
|
+
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\lines.py", line 945, in get_path
|
86
|
+
self.recache()
|
87
|
+
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\lines.py", line 645, in recache
|
88
|
+
y = _to_unmasked_float_array(yconv).ravel()
|
89
|
+
File "C:\Users\Anaconda3\lib\site-packages\matplotlib\cbook\__init__.py", line 1365, in _to_unmasked_float_array
|
90
|
+
return np.asarray(x, float)
|
91
|
+
File "C:\Users\Anaconda3\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
|
92
|
+
return array(a, dtype, copy=False, order=order)
|
93
|
+
TypeError: float() argument must be a string or a number, not 'function'
|
94
|
+
```
|