@@ -4324,23 +4324,23 @@ def fit_powerlaw(self, evals, xmin=None, xmax=None, plot=WW_ALL_PLOTS, layer_nam
43244324 if set (WW_FIT_PL_PLOTS ) & set (plot ):
43254325 if status == SUCCESS :
43264326 min_evals_to_plot = (xmin / 100 )
4327-
4328- fig2 = fit .plot_pdf (color = 'b' , linewidth = 0 ) # invisbile
4329- fig2 = fit .plot_pdf (color = 'r' , linewidth = 2 )
4330- if fit_type == POWER_LAW :
4331- if pl_package == WW_POWERLAW_PACKAGE :
4332- fit .plot_power_law_pdf (color = 'r' , linestyle = '--' , ax = fig2 )
4333- else :
4334- fit .power_law .plot_pdf (color = 'r' , linestyle = '--' , ax = fig2 )
4335-
4336- else :
4337- fit .truncated_power_law .plot_pdf (color = 'r' , linestyle = '--' , ax = fig2 )
43384327 else :
43394328 xmin = - 1
43404329 min_evals_to_plot = (0.4 * np .max (evals )/ 100 )
43414330 evals_to_plot = evals [evals > min_evals_to_plot ]
43424331
43434332 if WW_PLOT_LOGLOG_ESD in plot :
4333+ fig2 = fit .plot_pdf (color = 'b' , linewidth = 0 ) # invisbile
4334+ fig2 = fit .plot_pdf (color = 'r' , linewidth = 2 )
4335+ if fit_type == POWER_LAW :
4336+ if pl_package == WW_POWERLAW_PACKAGE :
4337+ fit .plot_power_law_pdf (color = 'r' , linestyle = '--' , ax = fig2 )
4338+ else :
4339+ fit .power_law .plot_pdf (color = 'r' , linestyle = '--' , ax = fig2 )
4340+
4341+ else :
4342+ fit .truncated_power_law .plot_pdf (color = 'r' , linestyle = '--' , ax = fig2 )
4343+
43444344 plot_loghist (evals_to_plot , bins = 100 , xmin = xmin )
43454345 title = "Log-Log ESD for {}\n " .format (layer_name )
43464346
0 commit comments