I would like to have subtitles in my graph legend using matplotlib.
Is there any alternative to do this ?
Thx,
Best,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you want legends for each line plotted, you can do this:
Each
labelkeyword argument provides the line’s label, and thelegend()command creates a box with legends inside. The optionallocargument (location) tries to prevent the legend box to be placed over the lines.