On 7/26/18 2:46 AM, mys...@ravijoshi.info wrote:
> Thank you very much Prabhu
>
> The following suggestion given by you worked well-
>
> ------------------------------------------------
> from mayavi import mlab
> import numpy as np
>
> N = 10
> x, y, z = np.random.random((3, N))
> rgba = np.random.randint(0, 256, size=(N, 4), dtype=np.uint8)
> rgba[:, -1] = 255
> src = mlab.pipeline.scalar_scatter(x, y, z)
> src.add_attribute(rgba, 'colors')
> src.data.point_data.set_active_scalars('colors')
> g = mlab.pipeline.glyph(src)
> g.glyph.glyph.scale_factor = 0.1
> mlab.show()
> ------------------------------------------------
>
> Please see the screenshot shared via DropBox-
> https://www.dropbox.com/s/f8xdlq726qy1uaj/mayavi.png?dl=0
>
> Is it possible to set the same radius for all the points? I really want to see
> all points in same radius. 

Did you try setting the different parameters related to scaling on the UI? Try 
this:

g.glyph.scale_mode = 'data_scaling_off'


Prabhu



------------------------------------------------------------------------------
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

Reply via email to