@@ -195,7 +195,7 @@ def plotly_protein_structure_graph(
195
195
figsize : Tuple [int , int ] = (620 , 650 ),
196
196
node_alpha : float = 0.7 ,
197
197
node_size_min : float = 20.0 ,
198
- node_size_multiplier : float = 20 .0 ,
198
+ node_size_multiplier : float = 1 .0 ,
199
199
node_size_feature : str = "degree" ,
200
200
label_node_ids : bool = True ,
201
201
node_colour_map = plt .cm .plasma ,
@@ -217,7 +217,7 @@ def plotly_protein_structure_graph(
217
217
:param node_size_min: Specifies node minimum size. Defaults to ``20.0``.
218
218
:type node_size_min: float
219
219
:param node_size_multiplier: Scales node size by a constant. Node sizes
220
- reflect degree. Defaults to ``20 .0``.
220
+ reflect degree. Defaults to ``1 .0``.
221
221
:type node_size_multiplier: float
222
222
:param node_size_feature: Which feature to scale the node size by. Defaults
223
223
to ``degree``.
@@ -378,7 +378,7 @@ def plot_protein_structure_graph(
378
378
figsize : Tuple [int , int ] = (10 , 7 ),
379
379
node_alpha : float = 0.7 ,
380
380
node_size_min : float = 20.0 ,
381
- node_size_multiplier : float = 20 .0 ,
381
+ node_size_multiplier : float = 1 .0 ,
382
382
label_node_ids : bool = True ,
383
383
node_colour_map = plt .cm .plasma ,
384
384
edge_color_map = plt .cm .plasma ,
@@ -402,10 +402,10 @@ def plot_protein_structure_graph(
402
402
:type figsize: Tuple[int, int]
403
403
:param node_alpha: Controls node transparency, defaults to ``0.7``.
404
404
:type node_alpha: float
405
- :param node_size_min: Specifies node minimum size, defaults to ``20``.
405
+ :param node_size_min: Specifies node minimum size, defaults to ``20.0 ``.
406
406
:type node_size_min: float
407
407
:param node_size_multiplier: Scales node size by a constant. Node sizes
408
- reflect degree. Defaults to ``20 ``.
408
+ reflect degree. Defaults to ``1.0 ``.
409
409
:type node_size_multiplier: float
410
410
:param label_node_ids: bool indicating whether or not to plot ``node_id``
411
411
labels. Defaults to ``True``.
@@ -629,15 +629,15 @@ def plot_distance_matrix(
629
629
raise ValueError ("Must provide either a graph or a distance matrix." )
630
630
631
631
if dist_mat is None :
632
- dist_mat = g .graph ["dist_mat" ]
632
+ dist_mat = g .graph ["dist_mat" ] # type: ignore
633
633
if g is not None :
634
634
x_range = list (g .nodes )
635
635
y_range = list (g .nodes )
636
636
if not title :
637
637
title = g .graph ["name" ] + " - Distance Matrix"
638
638
else :
639
- x_range = list (range (dist_mat .shape [0 ]))
640
- y_range = list (range (dist_mat .shape [1 ]))
639
+ x_range = list (range (dist_mat .shape [0 ])) # type: ignore
640
+ y_range = list (range (dist_mat .shape [1 ])) # type: ignore
641
641
if not title :
642
642
title = "Distance matrix"
643
643
@@ -743,7 +743,7 @@ def asteroid_plot(
743
743
use_plotly : bool = True ,
744
744
show_edges : bool = False ,
745
745
show_legend : bool = True ,
746
- node_size_multiplier : float = 10 ,
746
+ node_size_multiplier : float = 10.0 ,
747
747
) -> Union [plotly .graph_objects .Figure , matplotlib .figure .Figure ]:
748
748
# sourcery skip: remove-unnecessary-else, swap-if-else-branches
749
749
"""Plots a k-hop subgraph around a node as concentric shells.
@@ -778,12 +778,12 @@ def asteroid_plot(
778
778
:type use_plotly: bool
779
779
:param show_edges: Whether to show edges in the plot. Defaults to ``False``.
780
780
:type show_edges: bool
781
- :param show_legend: Whether to show the legend of the edges. Fefaults to
781
+ :param show_legend: Whether to show the legend of the edges. Defaults to
782
782
`True``.
783
783
:type show_legend: bool
784
784
:param node_size_multiplier: Multiplier for the size of the nodes. Defaults
785
- to ``10``.
786
- :type node_size_multiplier: float.
785
+ to ``10.0 ``.
786
+ :type node_size_multiplier: float
787
787
:returns: Plotly figure or matplotlib figure.
788
788
:rtpye: Union[plotly.graph_objects.Figure, matplotlib.figure.Figure]
789
789
"""
0 commit comments