[Matplotlib-users] plot
Partha Sinha
pnsinha68 at gmail.com
Fri May 31 05:07:26 EDT 2019
I want help on graph
I need to plot numbers one by one (lets say after interval of 5 sec) but
all in the same graph. How to do ?
My code is below
import time
import matplotlib.pyplot as plt
import numpy as np
from random import randint
i = 1
numbers = [0]*5
while i < 5:
numbers[i] = randint(0,100)
plt.plot(np.arange(1,6),numbers, 'o')
i += 1
matplotlib.pyplot.draw()
time.sleep(5)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20190531/5c95c885/attachment.html>
More information about the Matplotlib-users
mailing list