Sushilkumar | 14 Jun 00:27 2016
Picon

magnetic field lines

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?
Thanks in advance

On Sat, Feb 20, 2016 at 4:22 PM, <mayavi-users-request <at> lists.sourceforge.net> wrote:
Send MayaVi-users mailing list submissions to
        mayavi-users <at> 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-request <at> lists.sourceforge.net

You can reach the person managing the list at
        mayavi-users-owner <at> 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.conrado <at> cptec.inpe.br)
   2. Mayavi in latest ubuntu (Gael Varoquaux)
   3. save figure (jorge.conrado <at> cptec.inpe.br)
   4. scalar concern (zhang simon)


----------------------------------------------------------------------

Message: 1
Date: Tue, 10 Nov 2015 13:52:40 -0200
From: jorge.conrado <at> cptec.inpe.br
Subject: [MayaVi-users] contour plot
To: mayavi-users <at> lists.sourceforge.net
Message-ID: <7e897f638ca00385a5b0b169dedcc7d3 <at> 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.varoquaux <at> normalesup.org>
Subject: [MayaVi-users] Mayavi in latest ubuntu
To: mayavi-users <at> lists.sourceforge.net
Message-ID: <20151126163737.GY1663783 <at> 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.conrado <at> cptec.inpe.br
Subject: [MayaVi-users] save figure
To: mayavi-users <at> lists.sf.net
Message-ID: <b428d1b9fdcfee9bf36260e8b67ac1ba <at> 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 <zhangsimon55 <at> gmail.com>
Subject: [MayaVi-users] scalar concern
To: mayavi-users <at> lists.sf.net
Message-ID:
        <CAH6abnV8-SeXaFZewa-wBW0Lny8K-ZHaiiQ9MoOZYH_FozfZcA <at> 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 <at> 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."

------------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users
Kamal SELVAM | 9 Jun 13:47 2016
Picon
Gravatar

Error during Pip install Mac OSX

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
------------------------------------------------------------------------------
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
Lorenzo Isella | 15 Apr 09:51 2016
Picon

Convex Hull around Spheres

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
zhang simon | 20 Feb 23:21 2016
Picon

scalar concern

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.
------------------------------------------------------------------------------
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 <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users
jorge.conrado | 8 Dec 14:53 2015
Picon

save figure

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

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
Gael Varoquaux | 26 Nov 17:37 2015
Gravatar

Mayavi in latest ubuntu

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

------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551&iu=/4140
jorge.conrado | 10 Nov 16:52 2015
Picon

contour plot


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
Attachment (contorno.py): text/x-java, 2954 bytes
------------------------------------------------------------------------------
_______________________________________________
MayaVi-users mailing list
MayaVi-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users
jorge.conrado | 6 Nov 17:26 2015
Picon

enthought


Hi,

I'm a neuw users of Mayvai. I took an example contour.py from:

http://scipy-cookbook.readthedocs.org/items/MayaVi_examples.html

then I did :

python contour.py

and I had the message:

Traceback (most recent call last):
   File "contour.py", line 14, in <module>
     import enthought.mayavi
ImportError: No module named enthought.mayavi

Please what can I do to solve this error.

Conrado

------------------------------------------------------------------------------
jorge.conrado | 6 Nov 14:18 2015
Picon

3D data plot


Hi,

I'm starting to use Mayavi and I would like know how to plot the axis 
values for 3D vizualisation.

Tanks in advance,

Conrado

------------------------------------------------------------------------------
Christopher Snyder | 6 Sep 20:45 2015
Picon

volume rendering -- without bluring. (make it so you can see the actual voxel boundaries)

Hi,

Let's say I'm volume rendering a fairly small array 10x10x10. How can I make it so that it is clear that the produced image is the granular result of 10pixels in each dimension? I looked into setting anti-aliasing=0, but I don't think that was it.

Thanks,
Chris
------------------------------------------------------------------------------
_______________________________________________
MayaVi-users mailing list
MayaVi-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users
Christopher Snyder | 23 Aug 13:18 2015
Picon

how to set ctf and otf for volume rendering-- not in scripting mode

Hi,

This problem is well covered in scripting mode here

In the case of a gui, Gael suggested somewhere using the record function. I find it does not reflect changes in the ctf widget.

Here is my code. I find that I can access the ctf fine, and that the ctf I access is sensitive to changes in the gui widget. I just can't find a way to set the ctf.

class Vis(HasTraits):
    scene     = Instance(MlabSceneModel,())    
    save=Button()
    load=Button()
    editor=SceneEditor(scene_class=MayaviScene)
    def __init__(self,G):
        self.G=G
        HasTraits.__init__(self)
        self.array_src=ArraySource()
        self.array_src.scalar_data=G
        self.scene.mayavi_scene.add_child(self.array_src)
        self.vol_module=Volume()
        self.volume=self.array_src.add_module(self.vol_module)

    def _save_fired(self):
        self.my_crf=self.vol_module.volume_property.rgb_transfer_function ##Works!!
    def _load_fired(self):
        self.vol_module.volume_property.set_color(self.init_crf) ##Fails and I need help
 
   traits_view = View( ..)

vis=Vis(G)
vis.configure_traits()



Obvious workarounds like settings _ctf directly don't seem to work.

Thanks,
Chris
------------------------------------------------------------------------------
_______________________________________________
MayaVi-users mailing list
MayaVi-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Gmane