saving . . . saved delete the line from graph (Multiple plots) has been deleted. delete the line from graph (Multiple plots) has been hidden .
delete the line from graph (Multiple plots)
Title
Question
if i draw two or more line on graph i want to delete one of line from graph what function is used to delete the any one of line 

Python-3.4.3 Multiple-plots 10-11 min 50-60 sec 20-04-20, 5:39 p.m. laxmi_kant1@rediffmail.com

Answers:

You need to store the plot command in a variable and use remove method to clear the specific plot.
For e.g.
x = linspace(0, 2*pi, 50)
a = plot(x, sin(x))
b = plot(x, cos(x))
Let's say we want to remove the sine plot stored in the variable a. Just type a[0].remove(). This will remove the sine plot but the cosine plot is still present.
20-04-20, 5:52 p.m. aditya94palaparthy@gmail.com


You need to store the plot command in a variable and use the remove method to clear the specific plot.
For e.g.
x = linspace(0, 2*pi, 50)
a = plot(x, sin(x))
b = plot(x, cos(x))
Let's say we want to remove the sine plot stored in the variable a. Just type a[0].remove(). This will remove the sine plot but the cosine plot is still present.
20-04-20, 5:52 p.m. aditya94palaparthy@gmail.com
thank you sir
21-04-20, 6:27 p.m. laxmi_kant1@rediffmail.com

Login to add comment


Log-in to answer to this question.