@@ -975,7 +975,7 @@ def cifti_surfaces_plot(
975
975
surface_type = "inflated" ,
976
976
clip_range = (0 , None ),
977
977
output_file = None ,
978
- ** splt_kwargs ,
978
+ ** kwargs ,
979
979
):
980
980
"""
981
981
Plots a CIFTI-2 dense timeseries onto left/right mesh surfaces.
@@ -995,8 +995,8 @@ def cifti_surfaces_plot(
995
995
output_file: :obj:`str` or :obj:`None`
996
996
Path where the output figure should be saved. If this is not defined,
997
997
then the figure will be returned.
998
- splt_kwargs : dict
999
- Keyword arguments for :obj:`surfplot.Plot `
998
+ kwargs : dict
999
+ Keyword arguments for :obj:`nilearn.plotting.plot_surf `
1000
1000
1001
1001
Outputs
1002
1002
-------
@@ -1049,13 +1049,15 @@ def get_surface_meshes(density, surface_type):
1049
1049
lh_data = np .clip (lh_data , clip_range [0 ], clip_range [1 ], out = lh_data )
1050
1050
rh_data = np .clip (rh_data , clip_range [0 ], clip_range [1 ], out = rh_data )
1051
1051
1052
+ cmap = kwargs .pop ('cmap' , 'YlOrRd_r' )
1053
+
1052
1054
# Build the figure
1053
1055
lh_mesh , rh_mesh = get_surface_meshes (density , surface_type )
1054
1056
figure = plt .figure (figsize = plt .figaspect (0.5 ))
1055
1057
ax0 = figure .add_subplot (1 , 2 , 1 , projection = '3d' )
1056
- plot_surf (lh_mesh , lh_data , cmap = 'YlOrRd_r' , axes = ax0 )
1058
+ plot_surf (lh_mesh , lh_data , cmap = cmap , axes = ax0 , ** kwargs )
1057
1059
ax1 = figure .add_subplot (1 , 2 , 2 , projection = '3d' )
1058
- plot_surf (lh_mesh , lh_data , cmap = 'YlOrRd_r' , axes = ax1 )
1060
+ plot_surf (lh_mesh , lh_data , cmap = cmap , axes = ax1 , ** kwargs )
1059
1061
1060
1062
if output_file is not None :
1061
1063
figure .savefig (output_file , bbox_inches = "tight" )
0 commit comments