@@ -125,10 +125,6 @@ def __init__(self, graph, dim,
125125 self .__cmap = cmap
126126 node_col = _node_col (self .__graph , self .__colors , self .__agg )
127127 self .__fig = self ._figure (node_col )
128- #self._update_traces_col()
129- #self._update_layout()
130- #self._update_traces_cmap()
131- #self._update_traces_title()
132128
133129 def _nodes_trace (self , node_pos_arr , node_col ):
134130 attr_size = nx .get_node_attributes (self .__graph , ATTR_SIZE )
@@ -199,7 +195,6 @@ def _layout(self):
199195 line_col = 'rgba(230, 230, 230, 1.0)'
200196 axis = dict (
201197 showline = True ,
202- #linecolor='rgba(230, 230, 230, 1.0)',
203198 linewidth = 1 ,
204199 mirror = True ,
205200 visible = True ,
@@ -270,17 +265,13 @@ def _colorbar(self):
270265 elif self .__dim == 2 :
271266 return go .scatter .marker .ColorBar (cbar )
272267
273- def _text (self , colors = None ):
268+ def _text (self , colors ):
274269 attr_size = nx .get_node_attributes (self .__graph , ATTR_SIZE )
275- if colors is None :
276- def _lbl (n ):
277- size = _fmt (attr_size [n ], 5 )
278- return f'node: { n } <br>size: { size } '
279- else :
280- def _lbl (n ):
281- col = _fmt (colors [n ], 3 )
282- size = _fmt (attr_size [n ], 5 )
283- return f'color: { col } <br>node: { n } <br>size: { size } '
270+
271+ def _lbl (n ):
272+ col = _fmt (colors [n ], 3 )
273+ size = _fmt (attr_size [n ], 5 )
274+ return f'color: { col } <br>node: { n } <br>size: { size } '
284275 return [_lbl (n ) for n in self .__graph .nodes ()]
285276
286277 def _update_traces_pos (self ):
0 commit comments