Skip to content

Commit

Permalink
Fix impact plot
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwalter2 committed Nov 30, 2023
1 parent 53ce185 commit 75e1a46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/combine/pullsAndImpacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def plotImpacts(df, poi, pulls=False, normalize=False, oneSidedImpacts=False):
nval_ref = df[f'{impact_str}_ref'].apply(lambda x,frmt=frmt_ref: " ("+frmt.format(x)+")") #.round(2).astype(str)
nspace_ref = nval_ref.apply(lambda x, n=nval_ref.apply(len).max(): "\\ "*(n - len(x)))
nval = nval+nspace_ref+nval_ref
labels = df["label"].apply(lambda x: x[:-1] if x.startswith("$") else r"$\mathrm{"+x+"}")
labels = df["label"].apply(lambda x: x[:-1] if x.startswith("$") else r"$\text{"+x+"}")
labels = labels+r"\ \ "+nspace+nval+"$"
textargs = dict()
else:
Expand Down

0 comments on commit 75e1a46

Please sign in to comment.