Skip to content

Commit 61c33e8

Browse files
committed
plot Rb vs 1-lambda
1 parent 7b378eb commit 61c33e8

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

validphys2/src/validphys/closuretest/multiclosure_inconsistent_output.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ def plot_lambdavalues_bias_values(
6262
df = df[df.index == str(ds)]
6363

6464
ax.errorbar(
65-
lambdavalue["lambda_value"],
66-
df["sqrt bias"].values,
65+
1 - lambdavalue["lambda_value"],
66+
df["sqrt bias"].values[::-1],
6767
yerr=df["err sqrt bias"].values,
6868
color="blue",
6969
fmt='o',
7070
)
7171
ax.hlines(1, xmin=0, xmax=1.0, color="red", linestyle="--")
7272
ax.set_ylabel(r"$R_{b}$")
73-
ax.set_xlabel(r"$\lambda$")
73+
ax.set_xlabel(r"$1 - \lambda$")
7474

7575
ax.set_title(f"{ds.commondata.metadata.plotting.dataset_label}")
7676

@@ -101,15 +101,15 @@ def plot_lambdavalues_bias_values_full_data(
101101
df = lambdavalues_bootstrapped_table_bias_data[i]
102102

103103
ax.errorbar(
104-
lambdavalue["lambda_value"],
105-
df["sqrt bias"].values,
104+
1 - lambdavalue["lambda_value"],
105+
df["sqrt bias"].values[::-1],
106106
yerr=df["err sqrt bias"].values,
107107
color="blue",
108108
fmt='o',
109109
)
110110
ax.hlines(1, xmin=0, xmax=1.0, color="red", linestyle="--")
111111
ax.set_ylabel(r"$R_{b}$")
112-
ax.set_xlabel(r"$\lambda$")
112+
ax.set_xlabel(r"$1- \lambda$")
113113

114114
ax.set_title("Full data")
115115

0 commit comments

Comments
 (0)