
plt.title() function to add a title to the plot.plt.xlabel() and plt.ylabel() functions to add labels to the x-axis and y-axis, respectively.plt.legend() function to add a legend to the plot. You can specify labels for different plot elements (e.g., different lines, scatter points) and the plot will display a legend corresponding to those labels.