diff --git a/MBB.py b/MBB.py index 0a6a992780f255259fdc319a78b9ebef540a0daf..e6209d5dfff502ac1379e0b9f05c01d5df8dc666 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")