Matplotlib, plotting discreet values
        Posted  
        
            by Arkapravo
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Arkapravo
        
        
        
        Published on 2010-04-07T07:48:01Z
        Indexed on 
            2010/04/07
            7:53 UTC
        
        
        Read the original article
        Hit count: 635
        
I am trying to plot the following !
from numpy import *
from pylab import *
import random
for x in range(1,500):
    y = random.randint(1,25000)
    print(x,y)   
    plot(x,y)
show()
However, I keep getting a blank graph (?). Just to make sure that the program logic is correct I added the code print(x,y), just the confirm that (x,y) pairs are being generated. 
(x,y) pairs are being generated, but there is no plot, I keep getting a blank graph.
Any help ?
© Stack Overflow or respective owner