質問するログイン新規登録

質問編集履歴

2

情報の追加

2017/05/05 11:46

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -21,5 +21,10 @@
21
21
  ```ここに言語を入力
22
22
  python test4.py -w
23
23
  ```
24
- と( test4.pyはこのファイル名)実行したのですが実行したのですが同じエラーが出ました。
24
+ と( test4.pyはこのファイル名)実行したのですが実行したのですが同じエラー
25
+ ```ここに言語を入力
26
+ /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
27
+ if self._edgecolors_original != 'face':
28
+ ```
29
+ が出ました。
25
30
  どうしたらいいでしょうか?

1

情報の追加

2017/05/05 11:45

投稿

退会済みユーザー
title CHANGED
File without changes
body CHANGED
@@ -9,25 +9,17 @@
9
9
  for t in range(4):
10
10
  T.add_edge(t,t+1)
11
11
  TimeSpace = nx.tensor_product(G,T)
12
- print(TimeSpace)
12
+ nx.draw(TimeSpace)
13
+ plt.draw()
13
14
  ```
14
15
  と書いて実行すると
15
16
  ```ここに言語を入力
16
- Tensor product(,)
17
+ /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
18
+ if self._edgecolors_original != 'face':
17
19
  ```
18
- と出力されました。
20
+ warningが出ました。
19
21
  ```ここに言語を入力
20
- import matplotlib.pyplot as plt
21
- import networkx as nx
22
+ python test4.py -w
22
-
23
- G=nx.MultiDiGraph()
24
- G.add_edges_from([('A','B'),('A','C'),('A','A'),('B','B'),('C','C')])
25
- T = nx.DiGraph()
26
- for t in range(4):
27
- T.add_edge(t,t+1)
28
- TimeSpace = nx.tensor_product(G,T)
29
- plt.show()
30
23
  ```
31
- と書いて実行すると何も出力されませんでした。
32
- コードに書いた内容をmatplotlib描画したのですが
24
+ と( test4.pyはこのファイル名)実行したのすが実行したのですが同じエラーが出ました。
33
- plt.show() と書くのでは違でしょうか?
25
+ したらいいでしょうか?