@@ -2354,6 +2354,7 @@ def plot_source_estimates(
23542354 transparent = True ,
23552355 alpha = 1.0 ,
23562356 time_viewer = "auto" ,
2357+ * ,
23572358 subjects_dir = None ,
23582359 figure = None ,
23592360 views = "auto" ,
@@ -2463,8 +2464,7 @@ def plot_source_estimates(
24632464 Defaults to 'oct6'.
24642465
24652466 .. versionadded:: 0.15.0
2466- title : str | None
2467- Title for the figure. If None, the subject name will be used.
2467+ %(title_stc)s
24682468
24692469 .. versionadded:: 0.17.0
24702470 %(show_traces)s
@@ -2543,6 +2543,7 @@ def plot_source_estimates(
25432543 view_layout = view_layout ,
25442544 add_data_kwargs = add_data_kwargs ,
25452545 brain_kwargs = brain_kwargs ,
2546+ title = title ,
25462547 ** kwargs ,
25472548 )
25482549
@@ -2578,6 +2579,7 @@ def _plot_stc(
25782579 view_layout ,
25792580 add_data_kwargs ,
25802581 brain_kwargs ,
2582+ title ,
25812583):
25822584 from ..source_estimate import _BaseVolSourceEstimate
25832585 from .backends .renderer import _get_3d_backend , get_brain_class
@@ -2620,7 +2622,9 @@ def _plot_stc(
26202622 if overlay_alpha == 0 :
26212623 smoothing_steps = 1 # Disable smoothing to save time.
26222624
2623- title = subject if len (hemis ) > 1 else f"{ subject } - { hemis [0 ]} "
2625+ sub_info = subject if len (hemis ) > 1 else f"{ subject } - { hemis [0 ]} "
2626+ title = title if title is not None else sub_info
2627+
26242628 kwargs = {
26252629 "subject" : subject ,
26262630 "hemi" : hemi ,
@@ -3251,6 +3255,7 @@ def plot_vector_source_estimates(
32513255 vector_alpha = 1.0 ,
32523256 scale_factor = None ,
32533257 time_viewer = "auto" ,
3258+ * ,
32543259 subjects_dir = None ,
32553260 figure = None ,
32563261 views = "lateral" ,
@@ -3262,6 +3267,7 @@ def plot_vector_source_estimates(
32623267 foreground = None ,
32633268 initial_time = None ,
32643269 time_unit = "s" ,
3270+ title = None ,
32653271 show_traces = "auto" ,
32663272 src = None ,
32673273 volume_options = 1.0 ,
@@ -3339,6 +3345,9 @@ def plot_vector_source_estimates(
33393345 time_unit : 's' | 'ms'
33403346 Whether time is represented in seconds ("s", default) or
33413347 milliseconds ("ms").
3348+ %(title_stc)s
3349+
3350+ .. versionadded:: 1.9
33423351 %(show_traces)s
33433352 %(src_volume_options)s
33443353 %(view_layout)s
@@ -3385,6 +3394,7 @@ def plot_vector_source_estimates(
33853394 cortex = cortex ,
33863395 foreground = foreground ,
33873396 size = size ,
3397+ title = title ,
33883398 scale_factor = scale_factor ,
33893399 show_traces = show_traces ,
33903400 src = src ,
0 commit comments