Name the function to show legends on a plot.
The legend() function in Matplotlib's Pyplot library is used to display a legend on the plot.
legend()