Skip to content

Commit

Permalink
Background color white also with imbalance of negative and pos values
Browse files Browse the repository at this point in the history
  • Loading branch information
Guido committed Nov 12, 2020
1 parent 6bb13c0 commit 34c6e99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions brainbox/atlas/atlas.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,12 @@ def plot_atlas(regions, values, ML=-1, AP=0, DV=-1, color_palette='Reds',
all_regions = custom_region_list

# Add values to brain region list
region_values = np.ones(ba.regions.acronym.shape) * (np.min(values) - 1)
region_values = np.ones(ba.regions.acronym.shape) * (np.min(values) - (np.max(values) + 1))
for i, region in enumerate(regions):
region_values[all_regions == region] = values[i]

# Set 'void' to default white
region_values[0] = np.min(values) - 1
region_values[0] = np.min(values) - (np.max(values) + 1)

# Get slices with fill values
slice_sag = ba.slice(ML / 1000, axis=0, volume=ba.label) # saggital
Expand Down

0 comments on commit 34c6e99

Please sign in to comment.