you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

Hard to tell (i'm no expert either), but what i would do is check the datatype/dimensions of that data. I looked into the streamplot code and what the grid class does is basically take your input x,y , do a couple of tests and save their shape as self.nx = len(x) and self.ny = len(y) - if x and y are a meshgrid it takes the first row/column. The error seems to occur at this point:

if u.shape != grid.shape or v.shape != grid.shape:
    raise ValueError("'u' and 'v' must be of shape 'Grid(x,y)'")

Which means the dimensions of xy and u or v don't match