How to plot a CVS file with python? My plot comes up blank
Question: I have the code below that seems to run without issues until I try to plot it.
A blank plot will show when asked to plot.

    
    
    import numpy as np
    import matplotlib.pyplot as plt
    
    data = np.genfromtxt('/home/oem/Documents/620157.csv', delimiter=',',   skip_header=01, skip_footer=01, names=['x', 'y'])
    
    plt.plot(data,'o-')
    
    plt.show()
    


Answer: I'm not sure what your data looks like, but I believe you need to do something
like this:

    
    
    data = np.genfromtxt('/home/oem/Documents/620157.csv', 
                         delimiter=',',   
                         skip_header=1, 
                         skip_footer=1)
    name, x, y, a, b = zip(*data)
    plt.plot(x, y, 'o-')
    

As per your comment, the data is currently an array containing tuples of the
station name and the x and y data. Using `zip` with the `*` symbol assigns
them back to individual variables which can then be used for plotting.

