human
Remove or adapt border of frame of legend using matplotlib
assistant
Here is some code to remove frame of legend in plot `plt`

plt.legend(frameon=False)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.