Dave Peterson | 5 Aug 00:08

Re: Modify surf output (axes, scaling)

Thomas Königstein wrote:
>
> And another thing: in my example, I used quiver3d(*array(...)). The 
> asterisk somehow turns an array of n arrays into n arrays, as it 
> seems. But whereas quiver3d(*array(...)) works, a=*array(....) does 
> not. Also, quiver3d(*array(...), extent=(..)) does not work. This is 
> not a problem with mayavi, it's just my lack of knowledge concerning 
> numpy. I must have read the *array thing somewhere, but now I have 
> forgotten where that was, and googling for * isn't so easy :)
>

IIUC, this is just standard Python syntax for expanding a list into 
positional parameters when calling a callable.  Because the syntax 
requires calling a callable, it won't work for the a=*array(...) 
tries.   To get it to work when specifying extent, do 
"quiver3d(extent=(..), *array(...)) -- * expansion must be after any 
normal positional parameters and keyword values.

-- Dave

Gmane