I am new to using PyLab. I want to plot some points. But I don’t want to show the previous points i.e. as a new point comes the previous plotted point will vanish and the new point will be plotted. I have searched a lot but I could not find how to re-initialize the plot in between. The problem I am facing is I can set the current figure by using
plt.figure(f1.number) but after plotting the point in that figure it gets permanently changed.
I am new to using PyLab. I want to plot some points. But I
Share
plt.hold(False)before you start plotting will do what you want.holddetermines of old artists are held-on to when new ones are plotted. The default is for hold to be on.ex
Changing it via
plt.holdchanges it for all (new) axes. You can change the hold state for an individualaxesby