質問編集履歴

5

文法修正

2020/09/19 08:24

投稿

PPAP_AWS
PPAP_AWS

スコア105

test CHANGED
File without changes
test CHANGED
@@ -230,7 +230,7 @@
230
230
 
231
231
  ValueError: x and y must have same first dimension, but have shapes (1098,) and (245,)
232
232
 
233
- ```
233
+ ``
234
234
 
235
235
 
236
236
 

4

変更点追加

2020/09/19 08:24

投稿

PPAP_AWS
PPAP_AWS

スコア105

test CHANGED
@@ -1 +1 @@
1
- python グラフ指標 エラー
1
+ Python データ分析 グラフ Error
test CHANGED
File without changes

3

文法修正

2020/09/19 07:46

投稿

PPAP_AWS
PPAP_AWS

スコア105

test CHANGED
File without changes
test CHANGED
@@ -231,3 +231,17 @@
231
231
  ValueError: x and y must have same first dimension, but have shapes (1098,) and (245,)
232
232
 
233
233
  ```
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+ ![イメージ説明](317864735d07dfc63cc771a6cc807d63.png)
242
+
243
+ ![イメージ説明](6c6f9b5f0d907e262d3c71831d4d854a.png)
244
+
245
+ ![イメージ説明](87f7d87e80ab5e5c3106f94881a72d0a.png)
246
+
247
+ ![イメージ説明](23175f1f3f4368407596120bda328ff2.png)

2

文法修正

2020/09/19 05:45

投稿

PPAP_AWS
PPAP_AWS

スコア105

test CHANGED
File without changes
test CHANGED
File without changes

1

変更点追加

2020/09/19 04:49

投稿

PPAP_AWS
PPAP_AWS

スコア105

test CHANGED
File without changes
test CHANGED
@@ -4,7 +4,9 @@
4
4
 
5
5
  よろしくお願いします。
6
6
 
7
- [参考動画](file:///Users/oki/Desktop/MyCSS/index.html)問題時点は、19:50分です。
7
+ [参考動画](https://www.youtube.com/watch?v=-x88kBpG0Bw&t=333s) 問題時点は、19:50分です。
8
+
9
+
8
10
 
9
11
  ```Python
10
12
 
@@ -121,3 +123,111 @@
121
123
 
122
124
 
123
125
  ```
126
+
127
+
128
+
129
+ ```Python
130
+
131
+ ValueError Traceback (most recent call last)
132
+
133
+ <ipython-input-78-7e591daadd7c> in <module>
134
+
135
+ 2 plt.subplot(5,1,1)
136
+
137
+ 3
138
+
139
+ ----> 4 plt.plot(date,close,label='Close',color='#99b898')
140
+
141
+ 5 plt.plot(date,df['sma01'],label='sma01',color='#e84a5f')
142
+
143
+ 6 plt.plot(date,df['sma02'],label='sma02',color='#ff847c')
144
+
145
+
146
+
147
+ ~/anaconda3/lib/python3.7/site-packages/matplotlib/pyplot.py in plot(scalex, scaley, data, *args, **kwargs)
148
+
149
+ 2809 return gca().plot(
150
+
151
+ 2810 *args, scalex=scalex, scaley=scaley, **({"data": data} if data
152
+
153
+ -> 2811 is not None else {}), **kwargs)
154
+
155
+ 2812
156
+
157
+ 2813
158
+
159
+
160
+
161
+ ~/anaconda3/lib/python3.7/site-packages/matplotlib/__init__.py in inner(ax, data, *args, **kwargs)
162
+
163
+ 1808 "the Matplotlib list!)" % (label_namer, func.__name__),
164
+
165
+ 1809 RuntimeWarning, stacklevel=2)
166
+
167
+ -> 1810 return func(ax, *args, **kwargs)
168
+
169
+ 1811
170
+
171
+ 1812 inner.__doc__ = _add_data_doc(inner.__doc__,
172
+
173
+
174
+
175
+ ~/anaconda3/lib/python3.7/site-packages/matplotlib/axes/_axes.py in plot(self, scalex, scaley, *args, **kwargs)
176
+
177
+ 1609 kwargs = cbook.normalize_kwargs(kwargs, mlines.Line2D._alias_map)
178
+
179
+ 1610
180
+
181
+ -> 1611 for line in self._get_lines(*args, **kwargs):
182
+
183
+ 1612 self.add_line(line)
184
+
185
+ 1613 lines.append(line)
186
+
187
+
188
+
189
+ ~/anaconda3/lib/python3.7/site-packages/matplotlib/axes/_base.py in _grab_next_args(self, *args, **kwargs)
190
+
191
+ 391 this += args[0],
192
+
193
+ 392 args = args[1:]
194
+
195
+ --> 393 yield from self._plot_args(this, kwargs)
196
+
197
+ 394
198
+
199
+ 395
200
+
201
+
202
+
203
+ ~/anaconda3/lib/python3.7/site-packages/matplotlib/axes/_base.py in _plot_args(self, tup, kwargs)
204
+
205
+ 368 x, y = index_of(tup[-1])
206
+
207
+ 369
208
+
209
+ --> 370 x, y = self._xy_from_xy(x, y)
210
+
211
+ 371
212
+
213
+ 372 if self.command == 'plot':
214
+
215
+
216
+
217
+ ~/anaconda3/lib/python3.7/site-packages/matplotlib/axes/_base.py in _xy_from_xy(self, x, y)
218
+
219
+ 229 if x.shape[0] != y.shape[0]:
220
+
221
+ 230 raise ValueError("x and y must have same first dimension, but "
222
+
223
+ --> 231 "have shapes {} and {}".format(x.shape, y.shape))
224
+
225
+ 232 if x.ndim > 2 or y.ndim > 2:
226
+
227
+ 233 raise ValueError("x and y can be no greater than 2-D, but have "
228
+
229
+
230
+
231
+ ValueError: x and y must have same first dimension, but have shapes (1098,) and (245,)
232
+
233
+ ```