質問編集履歴
2
情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -44,6 +44,16 @@
|
|
44
44
|
|
45
45
|
```
|
46
46
|
|
47
|
-
と( test4.pyはこのファイル名)実行したのですが実行したのですが同じエラー
|
47
|
+
と( test4.pyはこのファイル名)実行したのですが実行したのですが同じエラー
|
48
|
+
|
49
|
+
```ここに言語を入力
|
50
|
+
|
51
|
+
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/collections.py:608: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
|
52
|
+
|
53
|
+
if self._edgecolors_original != 'face':
|
54
|
+
|
55
|
+
```
|
56
|
+
|
57
|
+
が出ました。
|
48
58
|
|
49
59
|
どうしたらいいでしょうか?
|
1
情報の追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,7 +20,9 @@
|
|
20
20
|
|
21
21
|
TimeSpace = nx.tensor_product(G,T)
|
22
22
|
|
23
|
-
|
23
|
+
nx.draw(TimeSpace)
|
24
|
+
|
25
|
+
plt.draw()
|
24
26
|
|
25
27
|
```
|
26
28
|
|
@@ -28,38 +30,20 @@
|
|
28
30
|
|
29
31
|
```ここに言語を入力
|
30
32
|
|
31
|
-
|
33
|
+
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/collections.py:608: FutureWarning: elementwise comparison failed; returning scalar instead, but in the future will perform elementwise comparison
|
34
|
+
|
35
|
+
if self._edgecolors_original != 'face':
|
32
36
|
|
33
37
|
```
|
34
38
|
|
35
|
-
と出
|
39
|
+
とwarningが出ました。
|
36
40
|
|
37
41
|
```ここに言語を入力
|
38
42
|
|
39
|
-
import matplotlib.pyplot as plt
|
40
|
-
|
41
|
-
|
43
|
+
python test4.py -w
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
G=nx.MultiDiGraph()
|
46
|
-
|
47
|
-
G.add_edges_from([('A','B'),('A','C'),('A','A'),('B','B'),('C','C')])
|
48
|
-
|
49
|
-
T = nx.DiGraph()
|
50
|
-
|
51
|
-
for t in range(4):
|
52
|
-
|
53
|
-
T.add_edge(t,t+1)
|
54
|
-
|
55
|
-
TimeSpace = nx.tensor_product(G,T)
|
56
|
-
|
57
|
-
plt.show()
|
58
44
|
|
59
45
|
```
|
60
46
|
|
61
|
-
と
|
47
|
+
と( test4.pyはこのファイル名)実行したのですが実行したのですが同じエラーが出ました。
|
62
48
|
|
63
|
-
コードに書いた内容をmatplotlib で描画したいのですが、
|
64
|
-
|
65
|
-
|
49
|
+
どうしたらいいでしょうか?
|