saving . . . saved Removing the title or legend has been deleted. Removing the title or legend has been hidden .
Removing the title or legend
Title
Question
Dear Sir/ Madam,
What is the command to remove "Title" or "Legend" from a plot, from an existing plot itself?
                                                                                                                                    Thank you




Python-3.4.3 Multiple-plots 10-11 min 20-30 sec 08-10-20, 8:25 p.m. madhusmitadash

Answers:

You can set the title to an empty string

plot.title('')

For legend you can remove it using the remove function:

plot.get_legend().remove()


14-10-20, 10:32 a.m. ankitrj.iitb
Thank You
14-10-20, 10:57 a.m. madhusmitadash

Login to add comment


Log-in to answer to this question.