pythonplotlinedrawmayavi

How to draw a line in Python Mayavi?


How to draw a line in 3D space in Python Mayavi? Is there a function from MLAB module that allows me to specify the start and end point of the line which will be drawn?


Solution

  • Check the documentation for mayavi; 3d plotting is in the tutorials and documented here. It's part of mlab, mayavi.mlab.plot3d(*args, **kwargs).

    The syntax is

    plot3d(x, y, z, ...)