@@ -1068,12 +1068,16 @@ def plot_incident_irradiance(
10681068 # Expected I'/I line from Moteki & Kondo.
10691069 i_ratio_expected = - (t_plot - tau_plot ) / (sigma_plot ** 2 )
10701070
1071+ plt .rcParams ["font.family" ] = "Times New Roman"
1072+ plt .rcParams ["mathtext.fontset" ] = "stix"
10711073 fig , ax = plt .subplots (figsize = (10 , 6 ))
10721074
10731075 # Normalized derivative.
10741076 line1 , = ax .plot (
10751077 t_plot ,
10761078 y_norm , # Scale for visibility
1079+ 'o' ,
1080+ color = "blue" ,
10771081 label = f"{ ch_name } (Normalized dS/dt)" ,
10781082 linewidth = 1.2 ,
10791083 )
@@ -1082,16 +1086,19 @@ def plot_incident_irradiance(
10821086 line2 , = ax .plot (
10831087 t_plot ,
10841088 i_ratio_expected ,
1085- linestyle = "--" ,
1089+ color = "blue" ,
1090+ alpha = 0.5 ,
10861091 linewidth = 2.0 ,
10871092 label = r"Expected $I'(t)/I(t)$" ,
10881093 )
10891094
10901095 ax .set_xlabel (x_label )
10911096 ax .set_ylim (- 1.0 , 1.0 )
10921097 ax .set_xlim (t_plot [10 ], t_plot [- 30 ])
1093- ax .set_ylabel (r"Normalized Derivative ($\rm \mu s^{-1}$)" )
1098+ ax .set_ylabel (r"Normalized Derivative ($\rm \mu s^{-1}$)" ,
1099+ color = "blue" )
10941100 ax .grid (True , alpha = 0.3 )
1101+ ax .tick_params (axis = "y" , colors = "blue" )
10951102
10961103 # Optional fit window shading.
10971104 if show_fit_window and sigma_ds is not None :
@@ -1126,13 +1133,14 @@ def plot_incident_irradiance(
11261133
11271134 lines = [line1 ,line2 , line3 ]
11281135 labels = [l .get_label () for l in lines ]
1129- ax .legend (lines , labels , loc = "best" )
1136+ ax .legend (lines , labels , loc = "best" , fontsize = 10 )
11301137 else :
1131- ax .legend (loc = "best" )
1138+ ax .legend (loc = "best" , fontsize = 10 )
11321139
11331140 ax .set_title (
11341141 f"Normalized Derivative, Expected I'(t)/I(t), and Scattering Signal - "
1135- f"Channel { chn } Record { record_no } "
1142+ f"Channel { chn } Record { record_no } " ,
1143+ pad = 20 , # increase space between title and plot
11361144 )
11371145
11381146 return ax
0 commit comments