Dear Mayavi:

I am trying to install mayavi and use it plot and visualize 3D magnetic
field lines. When I installed it on my laptop and ran the test script
provided by mayavi (
http://docs.enthought.com/mayavi/mayavi/auto/example_magnetic_field_lines.html
).
It ran perfectly and gave the desired output as in the link.

Thereafter when I install it on my university cluster and ran the same
script I am not getting the desired plot.

google drive link to the two images are below. image 1 is from my laptop
while image 2 is from the cluster.

On my cluster I am using Mayavi 4.4.0, whereas on my laptop its Mayavi
4.1.0.

Could you let me know why there should be discrepancy in the plot for the
same script on different machine?

https://drive.google.com/open?id=0B4g8shg4DL7odGV6V0JUa0Zodzg

Thanks in advance







On Mon, Jun 13, 2016 at 5:27 PM, <mayavi-users-requ...@lists.sourceforge.net
> wrote:

> Send MayaVi-users mailing list submissions to
>         mayavi-users@lists.sourceforge.net
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.sourceforge.net/lists/listinfo/mayavi-users
> or, via email, send a message with subject or body 'help' to
>         mayavi-users-requ...@lists.sourceforge.net
>
> You can reach the person managing the list at
>         mayavi-users-ow...@lists.sourceforge.net
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of MayaVi-users digest..."
>
>
> Today's Topics:
>
>    1. Convex Hull around Spheres (Lorenzo Isella)
>    2. Re: Convex Hull around Spheres (Christopher Snyder)
>    3. Error during Pip install Mac OSX (Kamal SELVAM)
>    4. magnetic field lines (Sushilkumar)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 15 Apr 2016 09:51:33 +0200
> From: Lorenzo Isella <lorenzo.ise...@gmail.com>
> Subject: [MayaVi-users] Convex Hull around Spheres
> To: mayavi-users@lists.sourceforge.net
> Message-ID: <20160415075133.GB3273@localhost.localdomain>
> Content-Type: text/plain; charset=us-ascii; format=flowed
>
> Dear All,
> This is what I would like to visualize (scripting as much as
> possible): I have a set of spheres in 3D, with diameter d=2, which I
> can visualize with mayavi.
> On top of that, using scipy.spatial, I can calculate a convex hull
> based on the centers of the spheres.
> The final touch would be to visualize this hull: I should obtain a
> mesh composed by poligons. I'd like it to be partially transparent, so
> that one can see also the spheres inside.
> I paste below a script which visualizes the spheres and calculates the
> convex hull.
> Any suggestions about how to overlay the convex hull is welcome.
> Cheers
>
> Lorenzo
>
>
> ###########################################################################
>
>
> import numpy as np
>
> from scipy.spatial import ConvexHull
>
> from mayavi import mlab
>
> cluster_agglomerate=np.array([[ 0.14513811, -0.18930948, -1.44428171],
>        [ 0.88042945,  1.67057596, -1.45742688],
>               [-1.66682741, -0.99554261, -1.70267889],
>                      [-0.95535694,  2.3159907 , -1.93637881],
>                             [ 1.09396798,  1.7987614 , -3.44524095],
>                                    [-2.63620654,  0.16588691,
>        -3.02436539],
>               [ 0.19027056,  2.70740725,  0.11479029],
>                      [ 2.77638842,  1.70535678, -2.10208878],
>                             [-0.09149779, -0.81908733,  2.07425244],
>                                    [-0.48408772,  0.96793567,
>        1.26652603],
>               [ 0.67499278, -2.5386008 ,  1.39914827],
>                      [ 1.02571108, -1.60932884, -0.34500693],
>                             [ 2.78789155, -1.42050584,  0.59682802],
>                                    [-0.14688239, -2.36883246,
>        3.35177362],
>               [-1.71507089,  0.19184887,  2.68408562],
>                      [-1.87886026, -1.58255618,  3.97006406],
>                             [ 6.61540229,  1.98324725,  0.82767368],
>                                    [ 7.46818823,  3.00950487,
>        -0.66214223],
>               [ 4.80777628,  1.97159273,  1.68344958],
>                      [ 6.3548727 ,  2.26459561,  2.92819854],
>                             [ 4.70026626,  0.44618044,  0.3866837 ],
>                                    [ 3.44366671,  1.87939977,
>        -0.2203051 ],
>               [ 2.92460648,  1.98510457,  2.37510769],
>                      [ 5.07053866, -0.10349542, -1.51041234],
>                             [ 7.21643437, -1.32050186, -0.70707322],
>                                    [ 6.93292243,  0.58458074,
>        -1.2458508 ],
>               [ 7.84238244, -2.97562362, -1.63914669],
>                      [ 7.43212373,  0.10620418,  0.68315389],
>                             [ 9.59692827, -2.0843759 , -1.26623658],
>                                    [ 8.34540867, -1.14927294,
>        1.95073173],
>               [ 6.57425162, -2.13797392, -2.94804639],
>                      [ 6.93340304, -4.4591665 , -0.63578546]])
>
>
> hull = ConvexHull(cluster_agglomerate)
>
>
>
> x=cluster_agglomerate[:,0]
> y=cluster_agglomerate[:,1]
> z=cluster_agglomerate[:,2]
>
>
> mlab.clf()
> pts = mlab.points3d(x, y, z, scale_mode='none', resolution=20,\
>                         color=(0,0,1),scale_factor=2.)
>                         #mlab.axes(pts)
>
> mlab.show()
>
>
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 15 Apr 2016 05:19:30 -0500
> From: Christopher Snyder <22csny...@gmail.com>
> Subject: Re: [MayaVi-users] Convex Hull around Spheres
> To: Lorenzo Isella <lorenzo.ise...@gmail.com>
> Cc: mayavi-users@lists.sourceforge.net
> Message-ID:
>         <CAAsQ6MK+9q-1_3tbQ2e+Rg+2ASe76dO6b9X=
> kcierzns4ed...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Lorenzo,
>
> I'm not a dev, but I've used Mayavi on occasion.
> I don't totally understand your question. Does pts = mlab.points3d(x, y, z,
> s)
> <
> http://docs.enthought.com/mayavi/mayavi/mlab.html#changing-the-looks-of-the-visual-objects-created
> >
> not
> do what you want? You can control the sphere size with s. Once you create
> the pts object, if you dig around enough you should be able to find the
> vertices that are used to create a polygon to represent that sphere.
>
> Best,
> Chris Snyder
>
>
>
> On Fri, Apr 15, 2016 at 2:51 AM, Lorenzo Isella <lorenzo.ise...@gmail.com>
> wrote:
>
> > Dear All,
> > This is what I would like to visualize (scripting as much as
> > possible): I have a set of spheres in 3D, with diameter d=2, which I
> > can visualize with mayavi.
> > On top of that, using scipy.spatial, I can calculate a convex hull
> > based on the centers of the spheres.
> > The final touch would be to visualize this hull: I should obtain a
> > mesh composed by poligons. I'd like it to be partially transparent, so
> > that one can see also the spheres inside.
> > I paste below a script which visualizes the spheres and calculates the
> > convex hull.
> > Any suggestions about how to overlay the convex hull is welcome.
> > Cheers
> >
> > Lorenzo
> >
> >
> >
> ###########################################################################
> >
> >
> > import numpy as np
> >
> > from scipy.spatial import ConvexHull
> >
> > from mayavi import mlab
> >
> > cluster_agglomerate=np.array([[ 0.14513811, -0.18930948, -1.44428171],
> >        [ 0.88042945,  1.67057596, -1.45742688],
> >               [-1.66682741, -0.99554261, -1.70267889],
> >                      [-0.95535694,  2.3159907 , -1.93637881],
> >                             [ 1.09396798,  1.7987614 , -3.44524095],
> >                                    [-2.63620654,  0.16588691,
> >        -3.02436539],
> >               [ 0.19027056,  2.70740725,  0.11479029],
> >                      [ 2.77638842,  1.70535678, -2.10208878],
> >                             [-0.09149779, -0.81908733,  2.07425244],
> >                                    [-0.48408772,  0.96793567,
> >        1.26652603],
> >               [ 0.67499278, -2.5386008 ,  1.39914827],
> >                      [ 1.02571108, -1.60932884, -0.34500693],
> >                             [ 2.78789155, -1.42050584,  0.59682802],
> >                                    [-0.14688239, -2.36883246,
> >        3.35177362],
> >               [-1.71507089,  0.19184887,  2.68408562],
> >                      [-1.87886026, -1.58255618,  3.97006406],
> >                             [ 6.61540229,  1.98324725,  0.82767368],
> >                                    [ 7.46818823,  3.00950487,
> >        -0.66214223],
> >               [ 4.80777628,  1.97159273,  1.68344958],
> >                      [ 6.3548727 ,  2.26459561,  2.92819854],
> >                             [ 4.70026626,  0.44618044,  0.3866837 ],
> >                                    [ 3.44366671,  1.87939977,
> >        -0.2203051 ],
> >               [ 2.92460648,  1.98510457,  2.37510769],
> >                      [ 5.07053866, -0.10349542, -1.51041234],
> >                             [ 7.21643437, -1.32050186, -0.70707322],
> >                                    [ 6.93292243,  0.58458074,
> >        -1.2458508 ],
> >               [ 7.84238244, -2.97562362, -1.63914669],
> >                      [ 7.43212373,  0.10620418,  0.68315389],
> >                             [ 9.59692827, -2.0843759 , -1.26623658],
> >                                    [ 8.34540867, -1.14927294,
> >        1.95073173],
> >               [ 6.57425162, -2.13797392, -2.94804639],
> >                      [ 6.93340304, -4.4591665 , -0.63578546]])
> >
> >
> > hull = ConvexHull(cluster_agglomerate)
> >
> >
> >
> > x=cluster_agglomerate[:,0]
> > y=cluster_agglomerate[:,1]
> > z=cluster_agglomerate[:,2]
> >
> >
> > mlab.clf()
> > pts = mlab.points3d(x, y, z, scale_mode='none', resolution=20,\
> >                         color=(0,0,1),scale_factor=2.)
> >                         #mlab.axes(pts)
> >
> > mlab.show()
> >
> >
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Find and fix application performance issues faster with Applications
> > Manager
> > Applications Manager provides deep performance insights into multiple
> > tiers of
> > your business applications. It resolves application problems quickly and
> > reduces your MTTR. Get your free trial!
> > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
> > _______________________________________________
> > MayaVi-users mailing list
> > MayaVi-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/mayavi-users
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
> Message: 3
> Date: Thu, 9 Jun 2016 13:47:32 +0200
> From: Kamal SELVAM <infikam...@gmail.com>
> Subject: [MayaVi-users] Error during Pip install Mac OSX
> To: mayavi-users@lists.sourceforge.net
> Message-ID: <20c8eb6f-3d5b-4849-af8a-44b30f3eb...@gmail.com>
> Content-Type: text/plain; charset=us-ascii
>
> Dear MAYAVI Users,
>
> I installed Python 2.7 via Home brew and installed all other library
> packages using pip
>
> To install Mayavi initially, I installed VTK using
>
>     brew reinstall --python --qt vtk5
>
> Later, I did
>
>     pip install mayavi
>
> but this gives out this error for me:
>
>     Building wheels for collected packages: mayavi
>     Running setup.py bdist_wheel for mayavi ... error
>     Complete output from command /usr/local/opt/python/bin/python2.7 -u -c
> "import setuptools,
>
> tokenize;__file__='/private/var/folders/t_/x10q3tk92ms64kcjqvxy8s8w0000gn/T/pip-
>     build-2zB86t/mayavi/setup.py';exec(compile(getattr(tokenize, 'open',
> open
>     (__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
> bdist_wheel -d
>     /var/folders/t_/x10q3tk92ms64kcjqvxy8s8w0000gn/T/tmpTxZtPCpip-wheel-
> --python-tag cp27:
>
>      running bdist_wheel
>      running build
>      Fatal Python error: PyThreadState_Get: no current thread
>
>
>
> Could someone tell how can fix this issue or what is going wrong, apart
> from that my python works fine.
>
> Thank you
>
> Best,
> Kamal
>
>
> ------------------------------
>
> Message: 4
> Date: Mon, 13 Jun 2016 17:27:45 -0500
> From: Sushilkumar <sushil.sush1...@gmail.com>
> Subject: [MayaVi-users] magnetic field lines
> To: mayavi-users@lists.sourceforge.net
> Message-ID:
>         <
> cakarakv9c5e0ohynolhsku26jfuecec7tnr0ityuk7qzgqs...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Dear Mayavi:
>
> I am trying to install mayavi and use it plot and visualize 3D magnetic
> field lines. When I installed it on my laptop and ran the test script
> provided by mayavi (
>
> http://docs.enthought.com/mayavi/mayavi/auto/example_magnetic_field_lines.html
> ).
> It ran perfectly and gave the desired output as in the link.
>
> Thereafter when I install it on my university cluster and ran the same
> script I am not getting the desired plot.
>
> google drive link to the two images are below. image 1 is from my laptop
> while image 2 is from the cluster.
>
> On my cluster I am using Mayavi 4.4.0, whereas on my laptop its Mayavi
> 4.1.0.
>
> Could you let me know why there should be discrepancy in the plot for the
> same script on different machine?
>
> https://drive.google.com/open?id=0B4g8shg4DL7odGV6V0JUa0Zodzg
>
> Thanks in advance
>
> On Sat, Feb 20, 2016 at 4:22 PM, <
> mayavi-users-requ...@lists.sourceforge.net
> > wrote:
>
> > Send MayaVi-users mailing list submissions to
> >         mayavi-users@lists.sourceforge.net
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> >         https://lists.sourceforge.net/lists/listinfo/mayavi-users
> > or, via email, send a message with subject or body 'help' to
> >         mayavi-users-requ...@lists.sourceforge.net
> >
> > You can reach the person managing the list at
> >         mayavi-users-ow...@lists.sourceforge.net
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of MayaVi-users digest..."
> >
> >
> > Today's Topics:
> >
> >    1. contour plot (jorge.conr...@cptec.inpe.br)
> >    2. Mayavi in latest ubuntu (Gael Varoquaux)
> >    3. save figure (jorge.conr...@cptec.inpe.br)
> >    4. scalar concern (zhang simon)
> >
> >
> > ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Tue, 10 Nov 2015 13:52:40 -0200
> > From: jorge.conr...@cptec.inpe.br
> > Subject: [MayaVi-users] contour plot
> > To: mayavi-users@lists.sourceforge.net
> > Message-ID: <7e897f638ca00385a5b0b169dedcc...@cptec.inpe.br>
> > Content-Type: text/plain; charset="us-ascii"
> >
> >
> > Hi,
> >
> >
> > I have the contorno.py plot that I get from the:
> > http://docs.enthought.com/mayavi/mayavi/auto/example_contour.html
> >
> >
> > I did:
> >
> > python contorno.py
> >
> >
> > and I had:
> >
> > Warning: Unable to import the wx backend for pyface due to traceback:
> > Traceback (most recent call last):
> >            File
> >
> >
> "/usr/lib/python2.7/site-packages/pyface-4.5.2-py2.7.egg/pyface/toolkit.py",
> > line 49, in _init_toolkit
> >              be = import_toolkit(tk)
> >            File
> >
> >
> "/usr/lib/python2.7/site-packages/pyface-4.5.2-py2.7.egg/pyface/toolkit.py",
> > line 31, in import_toolkit
> >              __import__(be + 'init')
> >            File
> >
> >
> "/usr/lib/python2.7/site-packages/pyface-4.5.2-py2.7.egg/pyface/ui/wx/init.py",
> > line 14, in <module>
> >              import wx
> >          ImportError: No module named wx
> >
> >
> > What can I do to solve this.
> >
> >
> > Conrado
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: contorno.py
> > Type: text/x-java
> > Size: 2184 bytes
> > Desc: not available
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Thu, 26 Nov 2015 17:37:37 +0100
> > From: Gael Varoquaux <gael.varoqu...@normalesup.org>
> > Subject: [MayaVi-users] Mayavi in latest ubuntu
> > To: mayavi-users@lists.sourceforge.net
> > Message-ID: <20151126163737.gy1663...@phare.normalesup.org>
> > Content-Type: text/plain; charset=iso-8859-1
> >
> > Mayavi doesn't work in the latest Ubuntu. It's probably a misconfigured
> > VTK (nothing to do with Mayavi). I have submitted a bug report to Ubuntu.
> > If people click on the 'flame' icon to show that they are also affected
> > by this bug, it may make it move up the priority list:
> > https://bugs.launchpad.net/ubuntu/+source/vtk/+bug/1520306
> >
> > Ga?l
> >
> >
> >
> >
> > ------------------------------
> >
> > Message: 3
> > Date: Tue, 08 Dec 2015 11:53:11 -0200
> > From: jorge.conr...@cptec.inpe.br
> > Subject: [MayaVi-users] save figure
> > To: mayavi-us...@lists.sf.net
> > Message-ID: <b428d1b9fdcfee9bf36260e8b67ac...@cptec.inpe.br>
> > Content-Type: text/plain; charset=US-ASCII; format=flowed
> >
> > Hi,
> >
> >
> >
> > This is a small part of my script:
> >
> >
> >
> > mlab.quiver3d(u, v, w)
> >
> > mlab.outline()
> >
> >
> >
> > mlab.show()
> >
> > mlab.savefig('t.png')
> >
> >
> >
> > I have my image on screen but my t.png figure have only a grey tone. How
> > can I save my figure.
> >
> >
> > I run my script using: python ventogr.py How can resize my mayavi
> > window.
> >
> >
> > Conrado
> >
> >
> >
> > ------------------------------
> >
> > Message: 4
> > Date: Sat, 20 Feb 2016 17:21:37 -0500
> > From: zhang simon <zhangsimo...@gmail.com>
> > Subject: [MayaVi-users] scalar concern
> > To: mayavi-us...@lists.sf.net
> > Message-ID:
> >         <
> > cah6abnv8-sexafzewa-wbw0lny8k-zhaiiq9moozyh_fozf...@mail.gmail.com>
> > Content-Type: text/plain; charset="utf-8"
> >
> > To those who may concern:
> > I am a new user of the MayaVi for visualizing of my research simulation,
> > and if you can help me with a small concern which is about the change of
> > "scalar variable"?
> > The attached figure is the scalar i want to see but the Mayavi only shows
> > me the "stress(effective)", then how can i view different scalars?
> >
> > Thank you so much for your help.
> >
> > Sincerely,
> > Siyang.
> > -------------- next part --------------
> > An HTML attachment was scrubbed...
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: desired scalar example.png
> > Type: image/png
> > Size: 90343 bytes
> > Desc: not available
> >
> > ------------------------------
> >
> >
> >
> ------------------------------------------------------------------------------
> > Site24x7 APM Insight: Get Deep Visibility into Application Performance
> > APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> > Monitor end-to-end web transactions and take corrective actions now
> > Troubleshoot faster and improve end-user experience. Signup Now!
> > http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> >
> > ------------------------------
> >
> > _______________________________________________
> > MayaVi-users mailing list
> > MayaVi-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/mayavi-users
> >
> >
> > End of MayaVi-users Digest, Vol 66, Issue 1
> > *******************************************
> >
>
>
>
> --
> *SK2*
>
> *"**Claiming that something can move faster than light is a good
> conversation-stopper in physics. People edge away from you in cocktail
> parties; friends never return phone calls. You just don?t mess with Albert
> Einstein.**"*
> -------------- next part --------------
> An HTML attachment was scrubbed...
>
> ------------------------------
>
>
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and
> traffic
> patterns at an interface-level. Reveals which users, apps, and protocols
> are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity
> planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
>
> ------------------------------
>
> _______________________________________________
> MayaVi-users mailing list
> MayaVi-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mayavi-users
>
>
> End of MayaVi-users Digest, Vol 67, Issue 1
> *******************************************
>



-- 
*SK2*

*"**Claiming that something can move faster than light is a good
conversation-stopper in physics. People edge away from you in cocktail
parties; friends never return phone calls. You just don’t mess with Albert
Einstein.**"*
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to