saving . . . saved clearing a particular subplot has been deleted. clearing a particular subplot has been hidden .
clearing a particular subplot
Title
Question
In the tutorial it is not shown how to clear a particular subplot from the main plot using pylab. Is there a command like clf() to clear only a subplot?

Python-3.4.3 Multiple-plots 01-02 min 30-40 sec 25-05-19, 3:33 p.m. deoramayank

Answers:

You can clear subplots (although this is not included in the tutorial) by storing the plot in a variable and then running the clf command using this variable.

For example:

sinplot = plot(x, sin(x), color='r')
sinplot.clf()
25-05-19, 3:52 p.m. ankitrj.iitb


Log-in to answer to this question.