Skip to content

Commit f33d2e2

Browse files
committed
Fix and update prob. label example
1 parent 2f8d018 commit f33d2e2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

examples/plot_probabilistic_label.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
overlay the label on an activation plot to asses whether it falls within that
3434
region.
3535
"""
36-
brain.add_label("BA45", color="#F0F8FF", borders=True, scalar_thresh=.5)
36+
brain.add_label("BA45", color="#F0F8FF", borders=3, scalar_thresh=.5)
3737
brain.add_label("BA45", color="#F0F8FF", alpha=.3, scalar_thresh=.5)
3838

3939
"""
@@ -46,10 +46,3 @@
4646
ids, probs = io.read_label(label_file, read_scalars=True)
4747
prob_field[ids] = probs
4848
brain.add_data(prob_field, thresh=1e-5, colormap="RdPu")
49-
50-
"""
51-
Adjust the colorbar to represent the coarseness of the probability estimates
52-
more closely.
53-
"""
54-
brain.data["colorbar"].number_of_colors = 10
55-
brain.data["colorbar"].number_of_labels = 11

0 commit comments

Comments
 (0)