Which function is used to show legends ?
legend()
Reason — The legend() function in Matplotlib's Pyplot module is used to show legends in a plot.