@@ -160,6 +160,8 @@ def time_response_plot(
160160 # Set up defaults
161161 time_label = config ._get_param (
162162 'timeplot' , 'time_label' , kwargs , _timeplot_defaults , pop = True )
163+ timeplot_rcParams = config ._get_param (
164+ 'timeplot' , 'rcParams' , kwargs , _timeplot_defaults , pop = True )
163165
164166 if kwargs .get ('input_props' , None ) and len (fmt ) > 0 :
165167 warn ("input_props ignored since fmt string was present" )
@@ -288,7 +290,7 @@ def time_response_plot(
288290
289291 # Create new axes, if needed, and customize them
290292 if ax is None :
291- with plt .rc_context (_timeplot_rcParams ):
293+ with plt .rc_context (timeplot_rcParams ):
292294 ax_array = fig .subplots (nrows , ncols , sharex = True , squeeze = False )
293295 fig .set_tight_layout (True )
294296 fig .align_labels ()
@@ -504,7 +506,7 @@ def _make_line_label(signal_index, signal_labels, trace_index):
504506 else :
505507 label = f"Trace { trace } "
506508
507- with plt .rc_context (_timeplot_rcParams ):
509+ with plt .rc_context (timeplot_rcParams ):
508510 ax_array [0 , trace ].set_title (label )
509511
510512 # Label the outputs
@@ -629,7 +631,7 @@ def _make_line_label(signal_index, signal_labels, trace_index):
629631
630632 # Update the labels to remove common strings
631633 if len (labels ) > 1 and legend_map [i , j ] != None :
632- with plt .rc_context (_timeplot_rcParams ):
634+ with plt .rc_context (timeplot_rcParams ):
633635 ax .legend (labels , loc = legend_map [i , j ])
634636
635637 #
@@ -663,7 +665,7 @@ def _make_line_label(signal_index, signal_labels, trace_index):
663665 new_title = old_title + separator + new_title [common_len :]
664666
665667 # Add the title
666- with plt .rc_context (_timeplot_rcParams ):
668+ with plt .rc_context (timeplot_rcParams ):
667669 fig .suptitle (new_title )
668670
669671 return out
0 commit comments