Skip to content

Commit

Permalink
made default node sizes bigger
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashton-Sidhu committed Apr 6, 2020
1 parent 4164513 commit 399aed7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions igviz/igviz.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _generate_scatter_trace(
edge_properties = {}

edge_trace = go.Scatter(
x=[], y=[], line=dict(width=1, color="#888"), hoverinfo="text", mode="lines",
x=[], y=[], line=dict(width=2, color="#888"), hoverinfo="text", mode="lines",
)

# NOTE: This is a hack because Plotly does not allow you to have hover text on a line
Expand Down Expand Up @@ -213,7 +213,7 @@ def _generate_scatter_trace(
node_trace["marker"]["size"] = size_method
else:
if size_method == "degree":
node_trace["marker"]["size"] += tuple([G.degree(node) * 2])
node_trace["marker"]["size"] += tuple([G.degree(node) + 12])
elif size_method == "static":
node_trace["marker"]["size"] += tuple([12])
else:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from setuptools import find_packages, setup
from setuptools.command.install import install

VERSION = "0.3.0"
VERSION = "0.3.1"

pkgs = [
"networkx==2.4",
Expand Down

0 comments on commit 399aed7

Please sign in to comment.