The Flow documentation reads:
The x, y and z arrays are then supposed to have been generated by numpy.mgrid...
So, in order to succeed plotting with the Flow function using six input arrays, one must create the first three using numpy.mgrid
With X, Y, and Z already designated as 1-dimensional arrays, this is what my code looks like this:
Xgrid, Ygrid, Zgrid = np.mgrid[X[1]:X[-1]:50j,Y[1]:Y[-1]:50j,Z[1]:Z[-1]:50j]
Note: numpy.mgrid
is different than numpy.meshgrid
.