Skip to content

Commit

Permalink
Set overlap_scaling to 30.
Browse files Browse the repository at this point in the history
Updated engine to neato.
  • Loading branch information
traceyyoshima committed Aug 24, 2023
1 parent 23a5bc0 commit c96dc47
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions moderne_visualizations_misc/cobol_relationships.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"source": [
"graphviz.set_jupyter_format(\"svg\")\n",
"dot = graphviz.Digraph(\n",
" \"cobol-relationships\", comment=\"COBOL relationships\", engine=\"sfdp\"\n",
" \"cobol-relationships\", comment=\"COBOL relationships\", engine=\"neato\"\n",
")\n",
"\n",
"# clean dependent field remove all content up to first slash\n",
Expand All @@ -57,9 +57,8 @@
"\n",
"dot.graph_attr = {\n",
" \"overlap\": \"prism\",\n",
" \"smoothing\": \"graph_dist\",\n",
" \"normalize\": \"true\",\n",
" \"overlap_scaling\": str(max(10, df.size / 150)),\n",
" \"overlap_scaling\": \"30\",\n",
"}\n",
"\n",
"\n",
Expand Down Expand Up @@ -108,7 +107,7 @@
" (df[\"dependent\"].isin(seen))\n",
" if exclude_incoming_relationships == \"true\"\n",
" else (df[\"dependent\"].isin(seen))\n",
" | (df[\"dependency\"].str.contains(filter_resources_related_to))\n",
" | (df[\"dependency\"].str.contains(filter_resources_related_to))\n",
" ]\n",
" dot.graph_attr[\"beautify\"] = \"true\"\n",
"\n",
Expand Down

0 comments on commit c96dc47

Please sign in to comment.