Activity for The MayaVi Data Visualizer

  • Vasudha Kapre Vasudha Kapre posted a comment on discussion Open Discussion

    Hi, I am trying to install mayavi for pysph on Ubuntu 22.04. I cloned the mayavi git repository, installed vtk using 'sudo apt-get -y install python3-vtk9', and installed PyQt5 using pip. However, there is no requirements.r in the mayavi folder. And when I run 'pip install mayavi', I get the error: "ImportError: cannot import name 'Sequence' from 'collections' (/usr/lib/python3.10/collections/init.py) [end of output] note: This error originates from a subprocess, and is likely not a problem with...

  • Pete Pete posted a comment on discussion Help

    In my Mayavi geometry which I create using mlab.triangular_mesh(), I want to create a 'heat map' type effect by scaling individual element coloration within a given colormap using externally supplied data (think: heat, stress, surface curvature, whatever) This is the only example I have found which approaches the topic, but I'd like your input if: 1) there is a better way to do it (using scalar field in triangular_mesh()?); and 2) how to relate the scalar input to a specific color map. import numpy...

  • Vitas Anderson Vitas Anderson posted a comment on discussion Help

    It looks like this forum is dead, but in case anybody googles this question I'm providing below a solution that I managed to work out myself. The solution was to insert the following code at the top of my python module imports: from traits.etsconfig.api import ETSConfig ETSConfig.toolkit = 'qt4' For some weird reason, it seems that specifying the ETSConfig.toolkit parameter as 'qt4' actually denotes qt4 and qt5, but specifying qt5 doesn't work even if your are using pyqt5.

  • Vitas Anderson Vitas Anderson modified a comment on discussion Help

    I'm having diabolical trouble trying to get mayavi mlab to work in a miniconda env. I've tried all sorts of configurations (py39, py38, p37, py36, qt4, qt5) but nothing seems to work. I've tried installing packages with conda and pip, but neither works. Every time I try to import mlab in ipython or a Jupyter notebook I get the following runtime error: RuntimeError: No pyface.toolkits plugin found for toolkit qt5 Here is an example of the creation of one of my miniconda envs: conda create -n mayavi...

  • Vitas Anderson Vitas Anderson modified a comment on discussion Help

    I'm having diabolical trouble trying to get mayavi mlab to work in a miniconda env. I've tried all sorts of configurations (py39, py38, p37, py36, qt4, qt5) but nothing seems to work. I've tried installing packages with conda and pip, but neither works. Every time I try to import mlab in ipython or a Jupyter notebook I get the following runtime error: RuntimeError: No pyface.toolkits plugin found for toolkit qt5 Here is an example of the creation of one of my miniconda envs: conda create -n mayavi...

  • Vitas Anderson Vitas Anderson posted a comment on discussion Help

    I'm having diabolical trouble trying to get mayavi mlab to work in a miniconda env. I've tried all sorts of configurations (py39, py38, p37, py36, qt4, qt5) but nothing seems to work. I've tried installing packages with conda and pip, but neither works. Every time I try to import mlab in ipython or a Jupyter notebook I get the following runtime error: RuntimeError: No pyface.toolkits plugin found for toolkit qt5 Here is an example of the creation of one of my trial envs: conda create -n mayavi python=3.8...

  • Vitas Anderson Vitas Anderson modified a comment on discussion Open Discussion

    I've just reinstalled a python 3.7 env and am now having problems importing mlab from mayavi. When I try to do so I get the error report below: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) ~\miniconda3\envs\py37\lib\site-packages\vtkmodules\vtkIOExodus.py in <module> 4 # use relative import for installed modules ----> 5 from .vtkIOExodusPython import * 6 except ImportError: ImportError: DLL load failed: The specified procedure...

  • Vitas Anderson Vitas Anderson modified a comment on discussion Open Discussion

    I've just reinstalled a python 3.7 env and am now having problems importing mlab from mayavi. When I try to do so I get the error report below: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) ~\miniconda3\envs\py37\lib\site-packages\vtkmodules\vtkIOExodus.py in <module> 4 # use relative import for installed modules ----> 5 from .vtkIOExodusPython import * 6 except ImportError: ImportError: DLL load failed: The specified procedure...

  • Vitas Anderson Vitas Anderson modified a comment on discussion Open Discussion

    I've just reinstalled a python 3.7 env and am now having problems importing mlab from mayavi. When I try to do so I get the error repor below: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) ~\miniconda3\envs\py37\lib\site-packages\vtkmodules\vtkIOExodus.py in <module> 4 # use relative import for installed modules ----> 5 from .vtkIOExodusPython import * 6 except ImportError: ImportError: DLL load failed: The specified procedure...

  • Vitas Anderson Vitas Anderson posted a comment on discussion Open Discussion

    I've just reinstall a python 3.7 env and am now having problems importing mlab from mayavi. When I try to do so I get the error repor below: --------------------------------------------------------------------------- ImportError Traceback (most recent call last) ~\miniconda3\envs\py37\lib\site-packages\vtkmodules\vtkIOExodus.py in <module> 4 # use relative import for installed modules ----> 5 from .vtkIOExodusPython import * 6 except ImportError: ImportError: DLL load failed: The specified procedure...

  • Vitas Anderson Vitas Anderson posted a comment on discussion Open Discussion

    I'm using mayavi mlab in notebook cells in Jupyterlab to view 3D isosurfaces. I quite like it because it renders isosurface scenes very efficiently, much quicker than plotly. However, mlab seems to run sychronously so that I can only view one mlab scene at a time. Can anyone tell me how to run mlab asynchronously from a notebook cell? In other words, I want to launch an mlab scene from a Jupyterlab notebook cell and then proceed to executing the next cell without having to shut down the mlab sce...

  • Rupesh Rupesh posted a comment on discussion Open Discussion

    Hello, I have set of points(x,y,z) from which I have created a mesh usng following code, from that I have get the triangular mesh. Now I want to know the which points were used to create traingles(faces). Is there any command which can give me that data from mesh object. Code: from plyfile import PlyData,PlyElement import numpy as np from mayavi import mlab from tvtk.api import tvtk plydata = PlyData.read('/home/local/ALGOANALYTICS/rchandgude/rupesh_work/NTT_dewrapping/sample_data/Envelope/Env.ply')...

  • Rubha Shri Narayanan Rubha Shri Narayanan modified a comment on discussion Open Discussion

    I have a Tkinter GUI and would like to embed mayavi images inside the frame. Is it possible to do that? Is there any examples which does support this function?

  • Rubha Shri Narayanan Rubha Shri Narayanan posted a comment on discussion Open Discussion

    I have a Tkinter GUI and would like to embed mayavi inside the frame. Is it possible to do that? Is there any examples which does support this function?

  • Mo Konesh Mo Konesh posted a comment on discussion mayavi-users

    How I can load multiple vaariables/scalars on a mayavi line and represent them as a tube ? in: src = mlab.pipeline.scalar_scatter(x, y, z,S) ## S should be the same size of z! ## src.mlab_source.dataset.lines = connections mlab.pipeline.tube(src_line, ......)

  • Simonious Simonious posted a comment on discussion Help

    Alright.. well failing that can someone direct me to a nice set of exercises to improve my ability in Mayavi?

  • Simonious Simonious posted a comment on discussion Help

    This is a great example written by Prabhi Ramachandran and modified slightly by me. I would like to turn it into a function such that I can call it to place a single arrow (xyz)position, (RGB)color, (xyz)orientation and even (xyz) size. I would prefer a 3d arrow to a 2d arrow. My intention is to maintain an array of data, perform some calculations between the elements and generate a second array, this array will then call the above function to create a visualization, then the second set of data will...

  • Poul Riis Poul Riis posted a comment on discussion mayavi-users

    In the project below I can control the size of the two windows on the screen. But how can I control the positions of the windows? I use jupyter notebook. Regards, Poul Riis Denmark import numpy as np from mayavi import mlab from math import * xx=np.linspace(0,1,201,endpoint=True) yy=xx2 zz=np.sin(2np.pi(xx+yy)) fig1 = mlab.figure(figure='Figur 1',size=(600, 300)) s1 = mlab.points3d(xx, yy, zz,scale_factor=0.02,color=(1,0,0)) mlab.axes(s1, ranges = [min(xx), max(xx), min(yy), max(yy), min(zz), max(zz)])...

  • Mike Mike posted a comment on discussion mayavi-users

    Dear All, I have the following codes, and have problems as follows: ・The plot is not displayed until the cmap is changed, Can I fix it? ・The name of the windows is "Edit properties", can I change it to Mayavi scence? def show(self): print "Plotting...", mlab.view(distance = 'auto') mlab.outline( line_width=1.0, opacity=0.3 ) mlab.axes() mlab.show() def __init__(self, arg1, arg2, arg3, arg4): HasTraits.__init__(self) self.file_peaks = arg1 self.file_pat_dist = arg2 self.file_hess_dist = arg3 self.file_id_dist...

  • Bernd Baumann Bernd Baumann posted a comment on discussion mayavi-users

    When I try to run the contour3d example from the mayavi documentation (or any other...

  • Ken Lee Ken Lee posted a comment on discussion mayavi-users

    I want th image cover the whole globe, but I get something like this

  • Ken Lee Ken Lee posted a comment on discussion mayavi-users

    this is the texture figure I use

  • Ken Lee Ken Lee posted a comment on discussion mayavi-users

    Hello everyone, I am using mlab.mesh to create a sphere, and want to use my own picture...

  • Raphaël Hérouart Raphaël Hérouart created ticket #13

    No toolbar... Cannot record

  • Manuel Barbarino Manuel Barbarino modified a comment on discussion Help

    fixed it, can be closed ;)

  • Manuel Barbarino Manuel Barbarino posted a comment on discussion Help

    fixed, it, can be closed ;)

  • Manuel Barbarino Manuel Barbarino modified a comment on discussion Help

  • Manuel Barbarino Manuel Barbarino modified a comment on discussion Help

    Hello I have a weird problem with using mayavi. If i use the following demo code...

  • Manuel Barbarino Manuel Barbarino posted a comment on discussion Help

    Hello I have a weird problem with using mayavi. If i use the following demo code...

  • The MayaVi Data Visualizer The MayaVi Data Visualizer released /OldFiles/vtkPipeline-1.1.tar.gz

1