質問編集履歴
7
画像変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -228,6 +228,6 @@
|
|
228
228
|
|
229
229
|
```
|
230
230
|
|
231
|
-
#3D
|
231
|
+
#3Dサーフェスグラフ画像追加
|
232
|
-
|
232
|
+
|
233
|
-
![イメージ説明](
|
233
|
+
![イメージ説明](697deb1ec400c3ef4f8be3d340c73802.png)
|
6
訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -126,6 +126,8 @@
|
|
126
126
|
|
127
127
|
#エラーコード
|
128
128
|
|
129
|
+
```
|
130
|
+
|
129
131
|
AttributeError Traceback (most recent call last)
|
130
132
|
|
131
133
|
<ipython-input-1-5f90f47f22c7> in <module>()
|
@@ -224,7 +226,7 @@
|
|
224
226
|
|
225
227
|
AttributeError: Unknown property c
|
226
228
|
|
227
|
-
|
229
|
+
```
|
228
230
|
|
229
231
|
#3D散布図画像追加
|
230
232
|
|
5
エラーコード詳細の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -124,6 +124,108 @@
|
|
124
124
|
|
125
125
|
|
126
126
|
|
127
|
+
#エラーコード
|
128
|
+
|
129
|
+
AttributeError Traceback (most recent call last)
|
130
|
+
|
131
|
+
<ipython-input-1-5f90f47f22c7> in <module>()
|
132
|
+
|
133
|
+
46 plt.show()
|
134
|
+
|
135
|
+
47 ##################################################
|
136
|
+
|
137
|
+
---> 48 ColormapFFT() #FFT3次元カラーマップ関数呼び出し
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
<ipython-input-1-5f90f47f22c7> in ColormapFFT()
|
142
|
+
|
143
|
+
39 #3Dグラフを表示
|
144
|
+
|
145
|
+
40 ax = plt.gca(projection='3d')
|
146
|
+
|
147
|
+
---> 41 surf = ax.plot_surface(xdata, df['freq'], df['amp'], c=df['amp'], cmap='jet')
|
148
|
+
|
149
|
+
42 ax.xaxis.set_ticks(xbins)
|
150
|
+
|
151
|
+
43 ax.xaxis.set_ticklabels(xformat)
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
C:.\Local\Continuum\Anaconda2\lib\site-packages\mpl_toolkits\mplot3d\axes3d.py in plot_surface(self, X, Y, Z, *args, **kwargs)
|
156
|
+
|
157
|
+
1657 normals = []
|
158
|
+
|
159
|
+
1658
|
160
|
+
|
161
|
+
-> 1659 polyc = art3d.Poly3DCollection(polys, *args, **kwargs)
|
162
|
+
|
163
|
+
1660
|
164
|
+
|
165
|
+
1661 if fcolors is not None:
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
C:.\Local\Continuum\Anaconda2\lib\site-packages\mpl_toolkits\mplot3d\art3d.py in __init__(self, verts, *args, **kwargs)
|
170
|
+
|
171
|
+
517 '''
|
172
|
+
|
173
|
+
518 zsort = kwargs.pop('zsort', True)
|
174
|
+
|
175
|
+
--> 519 PolyCollection.__init__(self, verts, *args, **kwargs)
|
176
|
+
|
177
|
+
520 self.set_zsort(zsort)
|
178
|
+
|
179
|
+
521 self._codes3d = None
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
C:.\Local\Continuum\Anaconda2\lib\site-packages\matplotlib\collections.py in __init__(self, verts, sizes, closed, **kwargs)
|
184
|
+
|
185
|
+
863 %(Collection)s
|
186
|
+
|
187
|
+
864 """
|
188
|
+
|
189
|
+
--> 865 Collection.__init__(self, **kwargs)
|
190
|
+
|
191
|
+
866 self.set_sizes(sizes)
|
192
|
+
|
193
|
+
867 self.set_verts(verts, closed)
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
C:.\Local\Continuum\Anaconda2\lib\site-packages\matplotlib\collections.py in __init__(self, edgecolors, facecolors, linewidths, linestyles, antialiaseds, offsets, transOffset, norm, cmap, pickradius, hatch, urls, offset_position, zorder, **kwargs)
|
198
|
+
|
199
|
+
137
|
200
|
+
|
201
|
+
138 self._path_effects = None
|
202
|
+
|
203
|
+
--> 139 self.update(kwargs)
|
204
|
+
|
205
|
+
140 self._paths = None
|
206
|
+
|
207
|
+
141
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
C:.\Local\Continuum\Anaconda2\lib\site-packages\matplotlib\artist.py in update(self, props)
|
212
|
+
|
213
|
+
854 func = getattr(self, 'set_' + k, None)
|
214
|
+
|
215
|
+
855 if func is None or not six.callable(func):
|
216
|
+
|
217
|
+
--> 856 raise AttributeError('Unknown property %s' % k)
|
218
|
+
|
219
|
+
857 func(v)
|
220
|
+
|
221
|
+
858 changed = True
|
222
|
+
|
223
|
+
|
224
|
+
|
225
|
+
AttributeError: Unknown property c
|
226
|
+
|
227
|
+
|
228
|
+
|
127
229
|
#3D散布図画像追加
|
128
230
|
|
129
231
|
![イメージ説明](d8bbb4f617e0ba140d1a39826e582910.png)
|
4
追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -126,4 +126,4 @@
|
|
126
126
|
|
127
127
|
#3D散布図画像追加
|
128
128
|
|
129
|
-
|
129
|
+
![イメージ説明](d8bbb4f617e0ba140d1a39826e582910.png)
|
3
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -124,6 +124,6 @@
|
|
124
124
|
|
125
125
|
|
126
126
|
|
127
|
-
#画像追加
|
127
|
+
#3D散布図画像追加
|
128
128
|
|
129
129
|
申し訳ありません、現在使用中のPCで画像が上げられないので帰宅後に出力致します
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -121,3 +121,9 @@
|
|
121
121
|
ColormapFFT() #FFT3次元カラーマップ関数呼び出し
|
122
122
|
|
123
123
|
```
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
#画像追加
|
128
|
+
|
129
|
+
申し訳ありません、現在使用中のPCで画像が上げられないので帰宅後に出力致します
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -41,6 +41,18 @@
|
|
41
41
|
#グローバル変数定義
|
42
42
|
|
43
43
|
files = glob.glob("./*/data/target.csv")
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
#グラフラベル
|
48
|
+
|
49
|
+
def graphlabel():
|
50
|
+
|
51
|
+
plt.xlabel("Frequency")
|
52
|
+
|
53
|
+
plt.ylabel("Amplitude")
|
54
|
+
|
55
|
+
|
44
56
|
|
45
57
|
##########################################
|
46
58
|
|