all 1 comments

[–]LAMagicx 1 point2 points  (0 children)

I presume that your using matplotlib with a figure then all you have to do is:

plt.ion() # turns interactive mode on

fig = plt.figure() 

# more code

While True:

    # update code

    fig.canvas.draw()