Skip to content

use matplotlib color maps #127

@burdinskid13

Description

@burdinskid13

Hi there! I have been trying to use fsleyes render together with two matplotlib color maps that I'd like to use. I cannot figure out how to properly add them to this command to make it work unfortunately. Any help would be much appreciated! Specifically, I'd like to use the Greens and Purples colormaps in the places of $cmap_pos and $cmap_neg. See my code below, which works fine with the built-in color maps in the places of $cmap_pos and $cmap_neg. Thank you!

! fsleyes render --neuroOrientation --outfile $Out -sz  500 500 \
       --selectedOverlay 1 --scene ortho --worldLoc 0 0 0 \
       --zcentre  0  0 --showLocation no \
       --layout horizontal --hidex --hidey --hideCursor \
       --showColourBar --colourBarLocation right --colourBarLabelSide top-left --colourBarSize 85.0 --labelSize 14 \
       $Anat --overlayType volume  \
       $Effect --name "" --overlayType volume --modulateImage $Stat --cmap $cmap_pos --negativeCmap $cmap_neg --useNegativeCmap --displayRange 0.0 13 --modulateRange 0.0 7.0 --modulateAlpha \
       $Stat --overlayType mask --alpha 100.0 --threshold -$Threshold $Threshold --outline --maskColour 0 0 0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions