What is the purpose of the legend() function in Matplotlib?
PYQ EMRS TGT/PGT (ESSE) 2023
What is the purpose of the legend() function in Matplotlib?
- A.
To add a title to a plot
- B.
To add annotations to a plot
- C.
To label different lines or markers on a plot
- D.
To label the x and y axes of a plot
Attempted by 1855 students.
Sign up free to check your answer
Sign up freeLoading lesson…

