You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but looking at the actual code in the master branch (through the interface on GitHub website), it seems that a bit more of processing is involved (through the class matplotlib.streamplot.Grid) in order to also allow at least one special case of 2d-arrays for X and Y.
Expected behavior: such special casing being made explicite in the docstring.
It seems that Grid objects only work with 2D arrays created as in np.meshgrid(x,y, indexing="xy"), and not as in np.meshgrid(x,y, indexing="ij"). Is there a specific reason for this? I, personally, have always preferred the second way to deal with 2D (or ND) arrays.
Activity
UnaiSan commentedon Sep 2, 2021
It seems that
Gridobjects only work with 2D arrays created as innp.meshgrid(x,y, indexing="xy"), and not as innp.meshgrid(x,y, indexing="ij"). Is there a specific reason for this? I, personally, have always preferred the second way to deal with 2D (or ND) arrays.jklymak commentedon Sep 2, 2021
Because that is how all our input arrays are provided.