@@ -745,9 +745,9 @@ def plot_strat(
745745 DeprecationWarning ,
746746 stacklevel = 2 ,
747747 )
748- assert (
749- "binary" in strat .outcome_types
750- ), f"Plotting not supported for outcome_type { strat . outcome_types [ 0 ] } "
748+ assert "binary" in strat . outcome_types , (
749+ f"Plotting not supported for outcome_type { strat .outcome_types [ 0 ] } "
750+ )
751751
752752 if target_level is not None and not hasattr (strat .model , "monotonic_idxs" ):
753753 warnings .warn (
@@ -873,7 +873,7 @@ def _plot_strat_1d(
873873 alpha = 0.3 ,
874874 hatch = "///" ,
875875 edgecolor = "gray" ,
876- label = f"{ cred_level * 100 :.0f} % posterior mass" ,
876+ label = f"{ cred_level * 100 :.0f} % posterior mass" ,
877877 )
878878 if target_level is not None :
879879 from aepsych .utils import interpolate_monotonic
@@ -892,7 +892,7 @@ def _plot_strat_1d(
892892 xerr = np .r_ [thresh_med - thresh_lower , thresh_upper - thresh_med ][:, None ],
893893 capsize = 5 ,
894894 elinewidth = 1 ,
895- label = f"Est. { target_level * 100 :.0f} % threshold \n (with { cred_level * 100 :.0f} % posterior \n mass marked)" ,
895+ label = f"Est. { target_level * 100 :.0f} % threshold \n (with { cred_level * 100 :.0f} % posterior \n mass marked)" ,
896896 )
897897
898898 if true_testfun is not None :
@@ -911,7 +911,7 @@ def _plot_strat_1d(
911911 true_thresh ,
912912 target_level ,
913913 "o" ,
914- label = f"True { target_level * 100 :.0f} % threshold" ,
914+ label = f"True { target_level * 100 :.0f} % threshold" ,
915915 )
916916
917917 ax .scatter (
@@ -1031,7 +1031,7 @@ def _plot_strat_2d(
10311031 ax .plot (
10321032 context_grid ,
10331033 thresh_75 .cpu ().numpy (),
1034- label = f"Est. { target_level * 100 :.0f} % threshold \n (with { cred_level * 100 :.0f} % posterior \n mass shaded)" ,
1034+ label = f"Est. { target_level * 100 :.0f} % threshold \n (with { cred_level * 100 :.0f} % posterior \n mass shaded)" ,
10351035 )
10361036 ax .fill_between (
10371037 context_grid ,
0 commit comments