title: flipped image in matplotlib
body: <p>Im trying to plot an image using matplotlib, and it comes out rotated 90 degrees clockwise, which  seems to be a common problem. So i need to rotate it back 90 degrees counterclockwise to show my actual image. However when I tried to plot the transpose of the data, i get an error message that says "invalid dimensions for image data" additionally i also tried to set origin to lower because that also seems to be a way to fix such problems, but that only flipped it across the x axis.  How do I fix this? here is my original code</p>
  
  <pre><code>from dipy.reconst.dti import color_fa
  cfa = color_fa(FA, tenfit.evecs)
  cfa_img = nib.Nifti1Image(cfa.astype(np.float32), img.get_affine())
  data_cfa = cfa_img.get_data()
  import matplotlib.pyplot as plt
  plt.figure('color_fa')
  plt.imshow(data_cfa[:,:,6,:])
  plt.show()
  </code></pre>
  
  <p>so it shows slice 6 of an image which is 192x192 </p>
  
  <p>and when i change the imshow line to </p>
  
  <pre><code>plt.imshow(data_cfa[:,:,6,:].T)
  </code></pre>
  
  <p>i get that error message.</p>
  
  <p>I'm new to python and matplotlib, so any help would be greatly appreciated! </p>