質問編集履歴

2

ケアレスミスでした

2019/06/02 01:18

投稿

chiku_soh
chiku_soh

スコア12

test CHANGED
File without changes
test CHANGED
@@ -133,55 +133,3 @@
133
133
  pythonを始めたばかりでコードが読みにくいと思いますが、
134
134
 
135
135
  よろしくお願いします。
136
-
137
-
138
-
139
- ・・・追記
140
-
141
- ```terminal
142
-
143
- raceback (most recent call last):
144
-
145
- File "task.py", line 43, in <module>
146
-
147
- plt.plot(t_list, u_list, c='green', label='u')
148
-
149
- File "C:\Users\Anaconda3\lib\site-packages\matplotlib\pyplot.py", line 2813, in plot
150
-
151
- is not None else {}), **kwargs)
152
-
153
- File "C:\Users\Anaconda3\lib\site-packages\matplotlib\__init__.py", line 1810, in inner
154
-
155
- return func(ax, *args, **kwargs)
156
-
157
- File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_axes.py", line 1612, in plot
158
-
159
- self.add_line(line)
160
-
161
- File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_base.py", line 1895, in add_line
162
-
163
- self._update_line_limits(line)
164
-
165
- File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_base.py", line 1917, in _update_line_limits
166
-
167
- path = line.get_path()
168
-
169
- File "C:\Users\Anaconda3\lib\site-packages\matplotlib\lines.py", line 945, in get_path
170
-
171
- self.recache()
172
-
173
- File "C:\Users\Anaconda3\lib\site-packages\matplotlib\lines.py", line 645, in recache
174
-
175
- y = _to_unmasked_float_array(yconv).ravel()
176
-
177
- File "C:\Users\Anaconda3\lib\site-packages\matplotlib\cbook\__init__.py", line 1365, in _to_unmasked_float_array
178
-
179
- return np.asarray(x, float)
180
-
181
- File "C:\Users\Anaconda3\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
182
-
183
- return array(a, dtype, copy=False, order=order)
184
-
185
- TypeError: float() argument must be a string or a number, not 'function'
186
-
187
- ```

1

更にエラーが出たので追記させていただきます。

2019/06/02 01:18

投稿

chiku_soh
chiku_soh

スコア12

test CHANGED
File without changes
test CHANGED
@@ -133,3 +133,55 @@
133
133
  pythonを始めたばかりでコードが読みにくいと思いますが、
134
134
 
135
135
  よろしくお願いします。
136
+
137
+
138
+
139
+ ・・・追記
140
+
141
+ ```terminal
142
+
143
+ raceback (most recent call last):
144
+
145
+ File "task.py", line 43, in <module>
146
+
147
+ plt.plot(t_list, u_list, c='green', label='u')
148
+
149
+ File "C:\Users\Anaconda3\lib\site-packages\matplotlib\pyplot.py", line 2813, in plot
150
+
151
+ is not None else {}), **kwargs)
152
+
153
+ File "C:\Users\Anaconda3\lib\site-packages\matplotlib\__init__.py", line 1810, in inner
154
+
155
+ return func(ax, *args, **kwargs)
156
+
157
+ File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_axes.py", line 1612, in plot
158
+
159
+ self.add_line(line)
160
+
161
+ File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_base.py", line 1895, in add_line
162
+
163
+ self._update_line_limits(line)
164
+
165
+ File "C:\Users\Anaconda3\lib\site-packages\matplotlib\axes\_base.py", line 1917, in _update_line_limits
166
+
167
+ path = line.get_path()
168
+
169
+ File "C:\Users\Anaconda3\lib\site-packages\matplotlib\lines.py", line 945, in get_path
170
+
171
+ self.recache()
172
+
173
+ File "C:\Users\Anaconda3\lib\site-packages\matplotlib\lines.py", line 645, in recache
174
+
175
+ y = _to_unmasked_float_array(yconv).ravel()
176
+
177
+ File "C:\Users\Anaconda3\lib\site-packages\matplotlib\cbook\__init__.py", line 1365, in _to_unmasked_float_array
178
+
179
+ return np.asarray(x, float)
180
+
181
+ File "C:\Users\Anaconda3\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
182
+
183
+ return array(a, dtype, copy=False, order=order)
184
+
185
+ TypeError: float() argument must be a string or a number, not 'function'
186
+
187
+ ```