How to remove the previous drawing in matplotlib, Python?
问题 I have run 3 Python scripts and each of them generated one curve in the plot. Each curve is made up of hundreds of small line segments. Thus, each curve is drawn by a series of plot() instead of one. But all these plot() share the same parameters (e.g. the color, style of one curve is consistent). Thus, I think it is still possible to easily remove all the segments drawn by particular one script. I find that the curve generated by the most-recently-run script is erroneous. Therefore, I wish