Skip to content

Commit 570f1ee

Browse files
Giovanni De Crescenzoscarlehoff
authored andcommitted
changed labels in single data point plots
1 parent 460a70f commit 570f1ee

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

validphys2/src/validphys/closuretest/multiclosure.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,18 +597,18 @@ def xq2_dataset_map(
597597
commondata = xq2map_with_cuts.commondata
598598
coords = xq2map_with_cuts[2]
599599
deltas = fits_normed_dataset_central_delta(multiclosure_dataset_loader)
600-
R_bv = np.sqrt(np.mean(deltas**2, axis=0))
600+
R_b = np.sqrt(np.mean(deltas**2, axis=0))
601601
xi = np.sum((np.abs(deltas) < 1).reshape(np.shape(deltas)[0],np.shape(deltas)[1]),axis=0)/np.shape(deltas)[0]
602602

603603
# for the case of double-hadronic observables we have 2 (x,Q) for each experimental point
604-
if coords[0].shape[0] != R_bv.shape[0]:
605-
R_bv = np.concatenate((R_bv, R_bv))
604+
if coords[0].shape[0] != R_b.shape[0]:
605+
R_b = np.concatenate((R_b, R_b))
606606
xi = np.concatenate((xi, xi))
607607

608608
xq2map = {
609609
'x_coords': coords[0],
610610
'Q_coords': coords[1],
611-
'R_bv': R_bv,
611+
'R_b': R_b,
612612
'xi': xi,
613613
'name': commondata.name,
614614
'process': commondata.process_type,

validphys2/src/validphys/closuretest/multiclosure_output.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -270,12 +270,12 @@ def plot_xq2_data_prcs_maps(xq2_data_map, each_dataset):
270270
figure
271271
272272
"""
273-
keys = ["R_bv", "xi"]
273+
keys = ["R_b", "xi"]
274274
for j, elem in enumerate(xq2_data_map):
275275

276276
for k in keys:
277-
if k == "R_bv":
278-
title = r"$R_{bv}$"
277+
if k == "R_b":
278+
title = r"$R_{b}$"
279279
if k == "xi":
280280
title = r"$\xi$"
281281
fig, ax = plotutils.subplots()

0 commit comments

Comments
 (0)