Skip to content

Commit 4d7bf23

Browse files
committed
Remove config_opts from example scripts
1 parent 1c70751 commit 4d7bf23

9 files changed

+10
-17
lines changed

examples/plot_fmri_conjunction.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
"""
2121
Initialize the visualization.
2222
"""
23-
brain = Brain("fsaverage", "lh", "inflated",
24-
config_opts=dict(background="white"))
23+
brain = Brain("fsaverage", "lh", "inflated", background="white")
2524

2625
"""
2726
Read both of the activation maps in using

examples/plot_meg_inverse_solution.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
"""
2323
create Brain object for visualization
2424
"""
25-
brain = Brain(subject_id, hemi, surface,
26-
config_opts=dict(width=800, height=400))
25+
brain = Brain(subject_id, hemi, surface, width=800, height=400)
2726

2827
"""
2928
read MNE dSPM inverse solution

examples/plot_morphometry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
print(__doc__)
1212

1313
brain = Brain("fsaverage", "both", "pial", views="frontal",
14-
config_opts=dict(background="dimgray"))
14+
background="dimgray")
1515

1616
"""
1717
Because the morphometry files generated by

examples/plot_parc_values.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
"""
2323
Bring up the visualization.
2424
"""
25-
brain = Brain(subject_id, hemi, surface,
26-
config_opts=dict(background="white"))
25+
brain = Brain(subject_id, hemi, surface, background="white")
2726

2827
"""
2928
Read in the Buckner resting state network annotation. (This requires a

examples/plot_parcellation.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
Bring up the visualization
2121
"""
2222
brain = Brain(subject_id, hemi, surface, views=view,
23-
config_opts={"cortex": "bone",
24-
"background": "ivory"})
23+
cortex="bone", background="ivory")
2524

2625
"""
2726
Display the 'aparc' parcellation borders.

examples/plot_probabilistic_label.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515

1616
print(__doc__)
1717

18-
brain = Brain("fsaverage", "lh", "inflated",
19-
config_opts=dict(cortex="low_contrast"))
18+
brain = Brain("fsaverage", "lh", "inflated", cortex="low_contrast")
2019

2120
"""
2221
The easiest way to label any vertex that could be in the region is with

examples/plot_resting_correlations.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
print(__doc__)
1616

1717
"""Bring up the visualization"""
18-
brain = Brain("fsaverage", "split", "inflated", views=['lat', 'med'],
19-
config_opts=dict(background="white"))
18+
brain = Brain("fsaverage", "split", "inflated",
19+
views=['lat', 'med'], background="white")
2020

2121
"""Project the volume file and return as an array"""
2222
mri_file = "example_data/resting_corr.nii.gz"

examples/plot_topographic_contours.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
Brain constructor.
1818
"""
1919
brain = Brain("fsaverage", "lh", "inflated",
20-
config_opts={"cortex": "low_contrast",
21-
"background": "#151540"})
20+
cortex="low_contrast", background="#151540")
2221

2322
"""
2423
Get a path to the overlay file

examples/save_movie.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"""
1717
create Brain object for visualization
1818
"""
19-
brain = Brain('fsaverage', 'split', 'inflated',
20-
config_opts=dict(width=800, height=400))
19+
brain = Brain('fsaverage', 'split', 'inflated', width=800, height=400)
2120

2221
"""
2322
read and display MNE dSPM inverse solution

0 commit comments

Comments
 (0)