MayaVi

Last updated
Developer(s) Enthought
Initial release2019;4 years ago (2019)
Stable release
4.8.1 / October 18, 2022;13 months ago (2022-10-18) [1]
Written in Python, VTK, wxPython/Qt
Operating system Linux, Mac OS X, Microsoft Windows
Available in English
Type Data visualization
License BSD License
Website docs.enthought.com/mayavi/mayavi/

MayaVi is a scientific data visualizer written in Python, which uses VTK and provides a GUI via Tkinter. MayaVi was developed by Prabhu Ramachandran, is free and distributed under the BSD License. It is cross-platform and runs on any platform where both Python and VTK are available (almost any Unix, Mac OS X, or Windows). MayaVi is pronounced as a single name, "Ma-ya-vee", meaning "magical" in Sanskrit. The code of MayaVi has nothing in common with that of Autodesk Maya or the Vi text editor. [2]

Contents

The latest version of MayaVi, called Mayavi2, is a component of the Enthought suite of scientific Python programs. It differs from the original MayaVi by its strong focus on making not only an interactive program, but also a reusable component for 3D plotting in Python. Although it exposes a slightly different interface and API than the original MayaVi, it now has more features. [3] [4]

Major features

Examples

Spherical harmonics

The spherical harmonic function
Y
3
0
(
th
,
ph
)
{\displaystyle Y_{3}^{0}(\theta ,\varphi )} Mayavi spherical harmonics Y 3 0.jpg
The spherical harmonic function
fromnumpyimportlinspace,meshgrid,array,sin,cos,pi,absfromscipy.specialimportsph_harmfrommayaviimportmlabtheta_1d=linspace(0,pi,91)phi_1d=linspace(0,2*pi,181)theta_2d,phi_2d=meshgrid(theta_1d,phi_1d)xyz_2d=array([sin(theta_2d)*sin(phi_2d),sin(theta_2d)*cos(phi_2d),cos(theta_2d)])l=3m=0Y_lm=sph_harm(m,l,phi_2d,theta_2d)r=abs(Y_lm.real)*xyz_2dmlab.figure(size=(700,830))mlab.mesh(r[0],r[1],r[2],scalars=Y_lm.real,colormap="cool")mlab.view(azimuth=0,elevation=75,distance=2.4,roll=-50)mlab.savefig("Y_%i_%i.jpg"%(l,m))mlab.show()

Related Research Articles

In geometry, a solid angle is a measure of the amount of the field of view from some particular point that a given object covers. That is, it is a measure of how large the object appears to an observer looking from that point. The point from which the object is viewed is called the apex of the solid angle, and the object is said to subtend its solid angle at that point.

In mathematics, a Gaussian function, often simply referred to as a Gaussian, is a function of the base form

<span class="mw-page-title-main">Bloch sphere</span> Geometrical representation of the pure state space of a two-level quantum mechanical system

In quantum mechanics and computing, the Bloch sphere is a geometrical representation of the pure state space of a two-level quantum mechanical system (qubit), named after the physicist Felix Bloch.

<span class="mw-page-title-main">Tomographic reconstruction</span> Estimate object properties from a finite number of projections

Tomographic reconstruction is a type of multidimensional inverse problem where the challenge is to yield an estimate of a specific system from a finite number of projections. The mathematical basis for tomographic imaging was laid down by Johann Radon. A notable example of applications is the reconstruction of computed tomography (CT) where cross-sectional images of patients are obtained in non-invasive manner. Recent developments have seen the Radon transform and its inverse used for tasks related to realistic object insertion required for testing and evaluating computed tomography use in airport security.

<span class="mw-page-title-main">Gabor filter</span> Linear filter used for texture analysis

In image processing, a Gabor filter, named after Dennis Gabor, who first proposed it as a 1D filter. The Gabor filter was first generalized to 2D by Gösta Granlund, by adding a reference direction. The Gabor filter is a linear filter used for texture analysis, which essentially means that it analyzes whether there is any specific frequency content in the image in specific directions in a localized region around the point or region of analysis. Frequency and orientation representations of Gabor filters are claimed by many contemporary vision scientists to be similar to those of the human visual system. They have been found to be particularly appropriate for texture representation and discrimination. In the spatial domain, a 2D Gabor filter is a Gaussian kernel function modulated by a sinusoidal plane wave.

The superformula is a generalization of the superellipse and was proposed by Johan Gielis around 2000. Gielis suggested that the formula can be used to describe many complex shapes and curves that are found in nature. Gielis has filed a patent application related to the synthesis of patterns generated by the superformula, which expired effective 2020-05-10.

Spatial rotations in three dimensions can be parametrized using both Euler angles and unit quaternions. This article explains how to convert between the two representations. Actually this simple use of "quaternions" was first presented by Euler some seventy years earlier than Hamilton to solve the problem of magic squares. For this reason the dynamics community commonly refers to quaternions in this application as "Euler parameters".

<span class="mw-page-title-main">VTK</span> Open-source software system for 3D computer graphics, image processing and visualization

The Visualization Toolkit (VTK) is an open-source software system for 3D computer graphics, image processing and scientific visualization.

<span class="mw-page-title-main">Directivity</span> Measure of how much of an antennas signal is transmitted in one direction

In electromagnetics, directivity is a parameter of an antenna or optical system which measures the degree to which the radiation emitted is concentrated in a single direction. It is the ratio of the radiation intensity in a given direction from the antenna to the radiation intensity averaged over all directions. Therefore, the directivity of a hypothetical isotropic radiator is 1, or 0 dBi.

In special functions, a topic in mathematics, spin-weighted spherical harmonics are generalizations of the standard spherical harmonics and—like the usual spherical harmonics—are functions on the sphere. Unlike ordinary spherical harmonics, the spin-weighted harmonics are U(1) gauge fields rather than scalar fields: mathematically, they take values in a complex line bundle. The spin-weighted harmonics are organized by degree l, just like ordinary spherical harmonics, but have an additional spin weights that reflects the additional U(1) symmetry. A special basis of harmonics can be derived from the Laplace spherical harmonics Ylm, and are typically denoted by sYlm, where l and m are the usual parameters familiar from the standard Laplace spherical harmonics. In this special basis, the spin-weighted spherical harmonics appear as actual functions, because the choice of a polar axis fixes the U(1) gauge ambiguity. The spin-weighted spherical harmonics can be obtained from the standard spherical harmonics by application of spin raising and lowering operators. In particular, the spin-weighted spherical harmonics of spin weight s = 0 are simply the standard spherical harmonics:

There are several equivalent ways for defining trigonometric functions, and the proof of the trigonometric identities between them depend on the chosen definition. The oldest and somehow the most elementary definition is based on the geometry of right triangles. The proofs given in this article use this definition, and thus apply to non-negative angles not greater than a right angle. For greater and negative angles, see Trigonometric functions.

<span class="mw-page-title-main">Hypercone</span> 4-dimensional figure

In geometry, a hypercone is the figure in the 4-dimensional Euclidean space represented by the equation

In mathematics, vector spherical harmonics (VSH) are an extension of the scalar spherical harmonics for use with vector fields. The components of the VSH are complex-valued functions expressed in the spherical coordinate basis vectors.

<span class="mw-page-title-main">Gravitational lensing formalism</span>

In general relativity, a point mass deflects a light ray with impact parameter by an angle approximately equal to

The direct-quadrature-zerotransformation or zero-direct-quadraturetransformation is a tensor that rotates the reference frame of a three-element vector or a three-by-three element matrix in an effort to simplify analysis. The DQZ transform is the product of the Clarke transform and the Park transform, first proposed in 1929 by Robert H. Park.

<span class="mw-page-title-main">Maurer rose</span> Curve formed by connecting intermittent points on a rose curve

In geometry, the concept of a Maurer rose was introduced by Peter M. Maurer in his article titled A Rose is a Rose.... A Maurer rose consists of some lines that connect some points on a rose curve.

<span class="mw-page-title-main">Drishti (client)</span>

Drishti is a multi-platform, open-source volume-exploration and presentation tool. Written for visualizing tomography data, electron-microscopy data and the like, it aims to ease understanding of data sets and to assist with conveying that understanding to the research community or to lay persons. From the website:

"The central idea about Drishti is that the scientists should be able to use it for exploring volumetric datasets as well as use it in presentations."

<span class="mw-page-title-main">CloudCompare</span>

CloudCompare is a 3D point cloud processing software. It can also handle triangular meshes and calibrated images.

In physics and engineering, Davenport chained rotations are three chained intrinsic rotations about body-fixed specific axes. Euler rotations and Tait–Bryan rotations are particular cases of the Davenport general rotation decomposition. The angles of rotation are called Davenport angles because the general problem of decomposing a rotation in a sequence of three was studied first by Paul B. Davenport.

In the larger context of Navier-Stokes Equations but especially in the context of potential theory Elementary flows are a collection of basic flows from which it is possible to construct more complex flows with different techniques. In this article the term flows is used interchangeably to the term solutions due to historical reasons.

References

  1. "mayavi · PyPI". pypi.org. Retrieved 2023-11-28.
  2. "MayaVi project page". SourceForge.
  3. "MayaVi2 wiki page".
  4. "MayaVi2 project page".