[MayaVi-users] Mayavi export to EPS

2018-02-04 Thread Shankar Kulumani
Hello everyone,

I'd like to export some  plots to EPS from Mayavi. There's an issue stating
that

Saving as a vector PS/EPS/PDF/TeX file using GL2PS is either not supported
by your version of VTK or you have not configured VTK to work with GL2PS --
read the documentation for the vtkGL2PSExporter class.

Does anyone have some insight into how to setup VTK/Mayavi to enable EPS
outputs?

Thank you

Shankar
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users


Re: [MayaVi-users] How to visualize colored point cloud in mayavi python?

2018-07-21 Thread Shankar Kulumani
This function will do exactly what you want

http://docs.enthought.com/mayavi/mayavi/auto/mlab_helper_functions.html#points3d

Example

points3d(x, y, z...)points3d(x, y, z, s, ...)points3d(x, y, z, f, ...)



On Sat, Jul 21, 2018, 03:12  wrote:

> Hello,
>
> I am new to mayavi and I am trying to use mayavi in python to visualize
> a point cloud. I have a colored point cloud (PointCloud)
> stored in a numpy array of shape (4, 4). The first three columns of
> this array are the position in 3D space (x, y, z) and the last column is
> RGB color packed in one using the following formulation-
>
> // pack r/g/b into rgb
> uint8_t r = 255, g = 0, b = 0;// Example: Red color
> uint32_t rgb = ((uint32_t)r << 16 | (uint32_t)g << 8 | (uint32_t)b);
>
> Hence, the point cloud contains 40,000 points in which each point has a
> color assigned to it.
>
> I want to know if it is possible to visualize it using mayavi python?
> Any sample code will be appreciated more.
>
> -
> Thanks
> Ravi
>
>
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> MayaVi-users mailing list
> MayaVi-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mayavi-users
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users