Fixed edge thickness (#370)

This commit is contained in:
Philipp Horstenkamp 2023-11-14 19:32:32 +01:00 committed by GitHub
parent 4df55f2914
commit e7278c047e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions

View File

@ -82,7 +82,7 @@ def create_2d_graph( # noqa PLR0913
edge_trace = go.Scatter(
x=edge_x,
y=edge_y,
line={"width": 0.5, "color": "#888"},
line={"width": edge_thickness, "color": "#888"},
hoverinfo="none",
mode="lines",
)
@ -111,7 +111,6 @@ def create_2d_graph( # noqa PLR0913
marker={
"color": [],
"size": 10,
"line_width": edge_thickness,
},
)

View File

@ -94,7 +94,7 @@ def create_3d_graph( # noqa : PLR0913
y=edge_y,
z=edge_z,
mode="lines",
line={"color": "rgb(125,125,125)", "width": 1},
line={"color": "rgb(125,125,125)", "width": edge_thickness * 2},
hoverinfo="none",
)
@ -128,7 +128,7 @@ def create_3d_graph( # noqa : PLR0913
"symbol": "circle",
"size": 6,
"color": "blue",
"line": {"color": "rgb(50,50,50)", "width": 0.5},
# "line": {"color": "rgb(50,50,50)", "width": 0.5},
},
# text=labels,
hoverinfo="text",