Skip to content

Conversation

@vinaysraghavan
Copy link
Collaborator

What does this implement/fix? Explain your changes.

Allows the user to manually set the alpha transparency of the background of brain plot.
This is useful for making the sulci and gyri coloring less prominent, so they don't distract from colormap differences.

Any other comments?

@vinaysraghavan vinaysraghavan changed the title Create alpha transparency for sulcus background Create sulcus alpha and light source for brain plots Aug 29, 2025
@vinaysraghavan
Copy link
Collaborator Author

vinaysraghavan commented Aug 29, 2025

image image

vs

image image
self.sulc_alpha = 1.0
except Exception as e:
logger.warning(f'No {hemi}.sulc file found. No sulcus information will be used.')
self.sulc = None
Copy link
Collaborator

@gavinmischler gavinmischler Sep 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe add self.sulc_alpha = 1.0 after line 127 also, or just put it after and separate from the "try-except" block? Just in case someone calls plot_hemi, it will automatically fail because it tries to do surfdist_viz and plug in self.sulc_alpha but it won't exist, so it's best to set it to something I think

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, good call. Changed

@vinaysraghavan vinaysraghavan merged commit bcd9b12 into main Sep 1, 2025
4 checks passed
@vinaysraghavan vinaysraghavan deleted the brain_sulc_alpha branch September 1, 2025 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants