@@ -160,6 +160,8 @@ def time_response_plot(
160
160
# Set up defaults
161
161
time_label = config ._get_param (
162
162
'timeplot' , 'time_label' , kwargs , _timeplot_defaults , pop = True )
163
+ timeplot_rcParams = config ._get_param (
164
+ 'timeplot' , 'rcParams' , kwargs , _timeplot_defaults , pop = True )
163
165
164
166
if kwargs .get ('input_props' , None ) and len (fmt ) > 0 :
165
167
warn ("input_props ignored since fmt string was present" )
@@ -288,7 +290,7 @@ def time_response_plot(
288
290
289
291
# Create new axes, if needed, and customize them
290
292
if ax is None :
291
- with plt .rc_context (_timeplot_rcParams ):
293
+ with plt .rc_context (timeplot_rcParams ):
292
294
ax_array = fig .subplots (nrows , ncols , sharex = True , squeeze = False )
293
295
fig .set_tight_layout (True )
294
296
fig .align_labels ()
@@ -504,7 +506,7 @@ def _make_line_label(signal_index, signal_labels, trace_index):
504
506
else :
505
507
label = f"Trace { trace } "
506
508
507
- with plt .rc_context (_timeplot_rcParams ):
509
+ with plt .rc_context (timeplot_rcParams ):
508
510
ax_array [0 , trace ].set_title (label )
509
511
510
512
# Label the outputs
@@ -629,7 +631,7 @@ def _make_line_label(signal_index, signal_labels, trace_index):
629
631
630
632
# Update the labels to remove common strings
631
633
if len (labels ) > 1 and legend_map [i , j ] != None :
632
- with plt .rc_context (_timeplot_rcParams ):
634
+ with plt .rc_context (timeplot_rcParams ):
633
635
ax .legend (labels , loc = legend_map [i , j ])
634
636
635
637
#
@@ -663,7 +665,7 @@ def _make_line_label(signal_index, signal_labels, trace_index):
663
665
new_title = old_title + separator + new_title [common_len :]
664
666
665
667
# Add the title
666
- with plt .rc_context (_timeplot_rcParams ):
668
+ with plt .rc_context (timeplot_rcParams ):
667
669
fig .suptitle (new_title )
668
670
669
671
return out
0 commit comments