質問編集履歴

5

誤字の修正

2022/11/15 01:39

投稿

netwrokxxxx
netwrokxxxx

スコア12

test CHANGED
File without changes
test CHANGED
@@ -23,7 +23,7 @@
23
23
  # 入力ウインドウの設定
24
24
  tki = tk.Tk() # Tkクラス生成
25
25
  tki.geometry('350x300') # 画面サイズ
26
- tki.title('輻輳リンク') # 画面タイトル
26
+ tki.title('2次元リンク') # 画面タイトル
27
27
 
28
28
  # チェックボタンのラベルをリスト化する
29
29
  chk_txt = ['通常ネットワークの可視化']

4

誤字の修正

2022/11/08 00:37

投稿

netwrokxxxx
netwrokxxxx

スコア12

test CHANGED
File without changes
test CHANGED
@@ -205,7 +205,7 @@
205
205
 
206
206
  ### 発生している問題・エラーメッセージ
207
207
 
208
- ※個人情報が伏せさせていただきます。
208
+ ※個人情報があるため、その部分は伏せさせていただきます。
209
209
  ```
210
210
  Exception in Tkinter callback
211
211
  Traceback (most recent call last):

3

冗長性の解消

2022/11/02 05:07

投稿

netwrokxxxx
netwrokxxxx

スコア12

test CHANGED
File without changes
test CHANGED
@@ -155,7 +155,7 @@
155
155
  ax = fig.add_subplot(121, projection="3d")
156
156
 
157
157
  #グラフタイトルを設定
158
- ax.set_title("輻輳リンクの可視化(3D)",size=20)
158
+ ax.set_title("3Dでグラフを可視化",size=20)
159
159
 
160
160
  # 各ノードの位置に点を打つ
161
161
  ax.scatter(

2

冗長な部分の削除

2022/11/02 02:58

投稿

netwrokxxxx
netwrokxxxx

スコア12

test CHANGED
File without changes
test CHANGED
@@ -70,7 +70,7 @@
70
70
 
71
71
  # 図の作成
72
72
  plt.figure(figsize=(15, 15))
73
- plt.title("輻輳リンクの可視化",
73
+ plt.title("グラフ",
74
74
  fontsize = 30,
75
75
  fontweight = 'bold')
76
76
 

1

エラー文を一部掲載から全文掲載へ

2022/11/02 02:51

投稿

netwrokxxxx
netwrokxxxx

スコア12

test CHANGED
File without changes
test CHANGED
@@ -205,10 +205,26 @@
205
205
 
206
206
  ### 発生している問題・エラーメッセージ
207
207
 
208
+ ※個人情報が伏せさせていただきます。
208
- ```
209
+ ```
209
- …line 105, in while_1
210
+ Exception in Tkinter callback
211
+ Traceback (most recent call last):
212
+ File "C:\Program Files\Python36\lib\tkinter\__init__.py", line 1705, in __call__
213
+ return self.func(*args)
214
+ File "C:/Program Files/Python36/3D_test2.py", line 106, in while_1
215
+ ,edge_color = 'c'
216
+ File "C:\Users\████\AppData\Roaming\Python\Python36\site-packages\networkx\drawing\nx_pylab.py", line 684, in draw_networkx_edges
210
- pos#_ary[:,2],
217
+ alpha=alpha,
218
+ File "C:\Users\████\AppData\Roaming\Python\Python36\site-packages\matplotlib\collections.py", line 1393, in __init__
211
-
219
+ self.set_segments(segments)
220
+ File "C:\Users\████\AppData\Roaming\Python\Python36\site-packages\matplotlib\collections.py", line 1408, in set_segments
221
+ self._paths = [mpath.Path(_seg) for _seg in _segments]
222
+ File "C:\Users\████\AppData\Roaming\Python\Python36\site-packages\matplotlib\collections.py", line 1408, in <listcomp>
223
+ self._paths = [mpath.Path(_seg) for _seg in _segments]
224
+ File "C:\Users\████\AppData\Roaming\Python\Python36\site-packages\matplotlib\path.py", line 132, in __init__
225
+ cbook._check_shape((None, 2), vertices=vertices)
226
+ File "C:\Users\████\AppData\Roaming\Python\Python36\site-packages\matplotlib\cbook\__init__.py", line 2304, in _check_shape
227
+ f"{k!r} must be {len(target_shape)}D "
212
228
  ValueError: 'vertices' must be 2D with shape (M, 2). Your input has shape (2, 3).
213
229
  ```
214
230
  - トポロジー情報