ENH: Add function to plot statistical clusters on brain surface
What does this implement/fix?
I improved the existing statistical cluster plot by adding a new function that plots the cluster boundary to its spatial extent on top of the brain.
Thanks for the contribution! For a big change like this, it's usually best to open an issue first to discuss the API. We'll discuss this one at our next maintainer meeting and report back. Meanwhile: if I view the last image in the rendered tutorial (https://output.circle-artifacts.com/output/job/77fa0002-c504-4110-a95d-0a57460ffe05/artifacts/0/html/auto_tutorials/stats-source-space/20_cluster_1samp_spatiotemporal.html#visualize-the-clusters), there doesn't appear to be any magenta-colored boundary on the brain? So not clear that this function is actually working as intended.
Thanks for the contribution! For a big change like this, it's usually best to open an issue first to discuss the API. We'll discuss this one at our next maintainer meeting and report back.
Apologies. I will open issue next time. :)
Meanwhile: if I view the last image in the rendered tutorial (https://output.circle-artifacts.com/output/job/77fa0002-c504-4110-a95d-0a57460ffe05/artifacts/0/html/auto_tutorials/stats-source-space/20_cluster_1samp_spatiotemporal.html#visualize-the-clusters), there doesn't appear to be any magenta-colored boundary on the brain? So not clear that this function is actually working as intended.
I have updated this part with a new cluster index, the boundary is visible now.
Apologies. I will open issue next time. :)
Why wait? You can do so now :)
A good start! Now we need the unit test to test different scenarios:
- Explicitly check that the proper vertices are included in the label
- Plotting multiple clusters and checking the auto-generated names
- Selecting different time points and checking that the cluster boundaries change
WIP