Skip to content

Commit 87de1af

Browse files
committed
Adding colors to the tracts
1 parent cbc0d7b commit 87de1af

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

usage_examples/examples-visualizationtools-methods.ipynb

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -576,6 +576,9 @@
576576
"Test 4: Plot scene with multiple views...\n",
577577
"Figure saved to: /tmp/scene_multiview.png\n",
578578
"Saved multi-view scene\n",
579+
"-------------------------------\n",
580+
"Test 5: Plot scene with tracts and surfaces...\n",
581+
"Saved scene with tracts and surfaces\n",
579582
"-------------------------------\n"
580583
]
581584
}
@@ -627,8 +630,9 @@
627630
"in_trk1 = os.path.join(fs_home, \"trctrain\",\"hcp\",\"mni\",\"cc.bodyc.display.trk\")\n",
628631
"in_trk2 = os.path.join(fs_home, \"trctrain\",\"hcp\",\"mni\",\"cc.bodypf.display.trk\")\n",
629632
"\n",
630-
"tract_obj1 = clttract.Tractogram(in_trk1)\n",
631-
"tract_obj2 = clttract.Tractogram(in_trk2)\n",
633+
"# Loading 2 tract objects with colors\n",
634+
"tract_obj1 = clttract.Tractogram(in_trk1, color=\"#FF0000FF\")\n",
635+
"tract_obj2 = clttract.Tractogram(in_trk2, color=\"#0000FFFF\")\n",
632636
"\n",
633637
"## Initialize BrainPlotter\n",
634638
"plotter = cltvis.BrainPlotter()\n",
@@ -701,7 +705,8 @@
701705
" scene_objects=scene_objects,\n",
702706
")\n",
703707
"print(\"Saved scene with tracts and surfaces\")\n",
704-
"print(\"-------------------------------\")\n"
708+
"print(\"-------------------------------\")\n",
709+
"\n"
705710
]
706711
},
707712
{

0 commit comments

Comments
 (0)