title: ValueError: objects are not aligned
body: <p>Why does this code</p>
  
  <pre><code>def fun(t1,t):
      v = np.array([t,t1])
      M = np.matrix([[0,0],[0,0]])
      a = np.dot(scipy.linalg.expm(M, q=0),v)
      return a[0] 
  x =  np.linspace(0,10,201)
  y = np.linspace(10,0,201)
  X,Y = np.meshgrid(x, y) 
  im = pl.imshow(fun(X,Y),cmap=cm.RdBu)
  show()
  </code></pre>
  
  <p>give me the error "ValueError: objects are not aligned"?
  I tried to write my vector as <code>v= np.array([[t],[t1]])</code> but that didn't help either. What am I doing wrong?</p>
  
  <p>Thanks!</p>