|
576 | 576 | "Test 4: Plot scene with multiple views...\n", |
577 | 577 | "Figure saved to: /tmp/scene_multiview.png\n", |
578 | 578 | "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", |
579 | 582 | "-------------------------------\n" |
580 | 583 | ] |
581 | 584 | } |
|
627 | 630 | "in_trk1 = os.path.join(fs_home, \"trctrain\",\"hcp\",\"mni\",\"cc.bodyc.display.trk\")\n", |
628 | 631 | "in_trk2 = os.path.join(fs_home, \"trctrain\",\"hcp\",\"mni\",\"cc.bodypf.display.trk\")\n", |
629 | 632 | "\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", |
632 | 636 | "\n", |
633 | 637 | "## Initialize BrainPlotter\n", |
634 | 638 | "plotter = cltvis.BrainPlotter()\n", |
|
701 | 705 | " scene_objects=scene_objects,\n", |
702 | 706 | ")\n", |
703 | 707 | "print(\"Saved scene with tracts and surfaces\")\n", |
704 | | - "print(\"-------------------------------\")\n" |
| 708 | + "print(\"-------------------------------\")\n", |
| 709 | + "\n" |
705 | 710 | ] |
706 | 711 | }, |
707 | 712 | { |
|
0 commit comments