From 15f5fe8381a1057ef6e7c7efe8ae5b85993b2308 Mon Sep 17 00:00:00 2001 From: Tim Jammer <tim.jammer@tu-darmstadt.de> Date: Tue, 10 Sep 2024 14:34:30 +0200 Subject: [PATCH] change plot labeling --- MBB.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/MBB.py b/MBB.py index 0a6a9927..e6209d5d 100755 --- a/MBB.py +++ b/MBB.py @@ -736,11 +736,11 @@ def plot_helpfulness(df, outpath, toolname): # Create custom legend handles handles = [ mpatches.Patch(color=colors[0], label="correct error class"), - mpatches.Patch(facecolor=colors[1], edgecolor=colors[2], hatch='//', label='correct class and line'), - mpatches.Patch(color=colors[2], label='correct source line'), - mpatches.Patch(color=colors[3], label='not helpful report') + mpatches.Patch(facecolor=colors[1], edgecolor=colors[2], hatch='//', label='correct error class and line'), + mpatches.Patch(color=colors[2], label='correct error source line'), + mpatches.Patch(color=colors[3], label='not helpful error report') ] - ax.legend(handles=handles, ncol=2, loc='center left', bbox_to_anchor=(0.05, -0.3)) + ax.legend(handles=handles, ncol=2, loc='center left', bbox_to_anchor=(-0.05, -0.3)) # ax.set_title(f"Helpfulness of {toolname.upper()} Error Reports") ax.set_xlabel("Percentage of error reports") ax.set_ylabel("MPI feature") -- GitLab