Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified paper_figures/fig5_difficulty.pdf
Binary file not shown.
Binary file modified paper_figures/fig5_difficulty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions scripts/make_figures.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ def fig5_difficulty():
markeredgewidth=0.8,
)
xs, ys = _pctile_curve(s)
pct = float(np.interp(probe, xs, ys))
p = round(pct)
pct = float(np.interp(probe, xs, ys)) # error rank (drives the verdict)
p = round(100 - pct) # precision pct shown (higher = better)
suf = ("th" if 11 <= p % 100 <= 13
else {1: "st", 2: "nd", 3: "rd"}.get(p % 10, "th"))
verdict = (
Expand Down Expand Up @@ -460,7 +460,7 @@ def fig5_difficulty():
for a, _ in curves:
s = rel[a]
xs, ys = _pctile_curve(s)
yy = np.interp(xx, xs, ys)
yy = 100 - np.interp(xx, xs, ys) # precision percentile (higher = better)
axC.plot(
xx, yy, color=REGION_COLORS[ABBR2REG[a]], lw=2.0, label=a, zorder=3
)
Expand All @@ -469,7 +469,7 @@ def fig5_difficulty():
xs, ys = _pctile_curve(rel[a])
axC.plot(
1.2,
float(np.interp(1.2, xs, ys)),
100 - float(np.interp(1.2, xs, ys)),
"o",
color=REGION_COLORS[ABBR2REG[a]],
ms=5,
Expand All @@ -481,7 +481,7 @@ def fig5_difficulty():
axC.set_xlim(0, 4)
axC.set_ylim(0, 100)
axC.set_xlabel("Placement error (mm)", fontsize=8.5)
axC.set_ylabel("Percentile within trained raters", fontsize=8.5)
axC.set_ylabel("Precision percentile (vs trained raters)", fontsize=8.5)
axC.legend(
fontsize=7,
loc="lower right",
Expand Down
Loading