title: plotting a row of 3 plots using matplotlib and numpy but getting "IndexError: too many indices for array"
body: <p>I am trying to plot a panel of 3 plots using <code>matplotlib</code> and the <code>subplots()</code> method. I have a <code>numpy</code> array of the mean values for the data and a second array for the standard error for the mean values. I tried to create a plot but keep getting an <code>IndexError: too many indices for array</code>.</p>
  
  <p>The numpy array looks like this:</p>
  
  <p><code>mean_matrix</code></p>
  
  <pre><code>f1    f2    f3
  8.3   4.1   12.9
  8.5   4.3   11.2
  </code></pre>
  
  <p><code>std_matrix</code></p>
  
  <pre><code>f1    f2    f3
  2.3   0.4   1.2
  1.2   0.2  1.3
  </code></pre>
  
  <p>So here is my code. As you can see, I am trying to plot the mean and then use a fill for 1.96 times the standard error.</p>
  
  <pre><code>f, axarr = plt.subplots(nrows = 1, ncols=3)
  
  axarr[0,0].plot(range(duration), mean_matrix['f1'], subplots=True)
  axarr[0,0].fill_between(range(duration), mean_matrix['f1'] +
                      1.96*std_matrix['f1'], mean_matrix['f1'] -
                      1.96*std_matrix['f1'], alpha=0.5)
  
  axarr[0,1].plot(range(duration), mean_matrix['f2'], subplots=True)
  axarr[0,1].fill_between(range(duration), mean_matrix['f2'] +
                      1.96*std_matrix['f2'], mean_matrix['f2'] -
                      1.96*std_matrix['f2'], alpha=0.5 )
  
  axarr[0,2].plot(range(duration), mean_matrix['f3'], subplots=True)
  axarr[0,2].fill_between(range(duration), mean_matrix['f3'] +
                      1.96*std_matrix['f3'], mean_matrix['f3'] -
                      1.96*std_matrix['f3'], alpha=0.5 )
  </code></pre>
  
  <p>I get the error: <code>IndexError: too many indices for array</code></p>