@@ -767,7 +767,7 @@ def add_data(self, array, min=None, max=None, thresh=None,
767767 colormap = "RdBu_r" , alpha = 1 ,
768768 vertices = None , smoothing_steps = 20 , time = None ,
769769 time_label = "time index=%d" , colorbar = True ,
770- hemi = None , remove_existing = False ):
770+ hemi = None , remove_existing = False , time_label_size = 14 ):
771771 """Display data from a numpy array on the surface.
772772
773773 This provides a similar interface to add_overlay, but it displays
@@ -820,6 +820,8 @@ def add_data(self, array, min=None, max=None, thresh=None,
820820 remove_existing : bool
821821 Remove surface added by previous "add_data" call. Useful for
822822 conserving memory when displaying different data in a loop.
823+ time_label_size : int
824+ Font size of the time label (default 14)
823825 """
824826 hemi = self ._check_hemi (hemi )
825827
@@ -897,7 +899,8 @@ def add_data(self, array, min=None, max=None, thresh=None,
897899 if array .ndim == 2 and time_label is not None :
898900 self .add_text (0.95 , y_txt , time_label (time [0 ]),
899901 name = "time_label" , row = row , col = col ,
900- font_size = 14 , justification = 'right' )
902+ font_size = time_label_size ,
903+ justification = 'right' )
901904 self ._toggle_render (True , views )
902905 data ['surfaces' ] = surfs
903906 data ['colorbars' ] = bars
0 commit comments