title: How to create a scatter plot for each dataframe column
body: <p>I am trying to write some code in order to create an animation of scatter plot data through tine. In order to do this I have a dataset with multiple columns where each column represents a numbered timestep. </p>
  
  <p>I would like the code to cycle through each timestep column for the y axis and use a constant x axis, so that a separate scatter plot is generated for each timestep. I tried to do this by coding a for loop that specifies an incrementing column number for the y axis.</p>
  
  <p>My current code generates three out of seven scatter plots in my sample data but returns the following error:</p>
  
  <p><code>IndexError: index 9 is out of bounds for axis 0 with size 9</code></p>
  
  <p>I have tried other similar solutions on stack overflow but that didn't correct my problem. </p>
  
  <p>The data is here if anyone wants to use what I am using: <a href="https://www.dropbox.com/s/7vwa0lud44td2ak/test_splot_anim_noTS.csv?dl=0" rel="nofollow noreferrer">https://www.dropbox.com/s/7vwa0lud44td2ak/test_splot_anim_noTS.csv?dl=0</a><a href="https://www.dropbox.com/s/7vwa0lud44td2ak/test_splot_anim_noTS.csv?dl=0" rel="nofollow noreferrer">data file</a></p>
  
  <p>Any help or advice would be much appreciated. </p>
  
  <pre><code>import numpy as np
  import pandas a pd
  import matplotlib as mpl
  import matplotlib.pyplot as plt
  
  data=pd.read_csv("test_splot_anim_noTS.csv") 
  
  for n in range (6, 13):
      data.plot(kind='scatter', x='metres', y=n)
      plt.ylim(-4,4)
      plt.savefig('n.jpeg')
  </code></pre>