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
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()
Login to add comment