Bonjour, j'ai un problème, je cherche à afficher un champs de vecteur en 3D, a l'aide de :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
mlab.quiver3d(x,y,z,Bx,By,Bz)
.
Voici ce que j'obtiens dans le terminal:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  File "inter3d.py", line 80, in <module>
    mlab.quiver3d(x,y,z,Bx,By,Bz,scale_factor=1 ,mask_points =5)
  File "/usr/lib/python2.7/dist-packages/mayavi/tools/helper_functions.py", line 34, in the_function
    return pipeline(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mayavi/tools/helper_functions.py", line 79, in __call__
    output = self.__call_internal__(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mayavi/tools/helper_functions.py", line 175, in __call_internal__
    g = Pipeline.__call_internal__(self, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mayavi/tools/helper_functions.py", line 90, in __call_internal__
    self.source = self._source_function(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/mayavi/tools/sources.py", line 991, in vector_scatter
    x, y, z, u, v, w = process_regular_vectors(*args)
  File "/usr/lib/python2.7/dist-packages/mayavi/tools/sources.py", line 904, in process_regular_vectors
    w.shape == v.shape ), "argument shape are not equal"
AssertionError: argument shape are not equal
ValueError: wrong number of arguments
Voila, donc si quelqu'un a une petite idée pour me sortir de l'embarras ^