mayavi-users Mailing List for The MayaVi Data Visualizer
Status: Beta
Brought to you by:
prabhu_r
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(32) |
Jun
(16) |
Jul
(11) |
Aug
(15) |
Sep
(7) |
Oct
(48) |
Nov
(35) |
Dec
(38) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(25) |
Feb
(61) |
Mar
(53) |
Apr
(5) |
May
(18) |
Jun
(27) |
Jul
(38) |
Aug
(19) |
Sep
(22) |
Oct
(29) |
Nov
(55) |
Dec
(29) |
2003 |
Jan
(15) |
Feb
(21) |
Mar
(40) |
Apr
(26) |
May
(51) |
Jun
(72) |
Jul
(42) |
Aug
(42) |
Sep
(40) |
Oct
(105) |
Nov
(75) |
Dec
(30) |
2004 |
Jan
(28) |
Feb
(33) |
Mar
(46) |
Apr
(21) |
May
(50) |
Jun
(67) |
Jul
(53) |
Aug
(28) |
Sep
(12) |
Oct
(18) |
Nov
(37) |
Dec
(13) |
2005 |
Jan
(34) |
Feb
(24) |
Mar
(28) |
Apr
(48) |
May
(24) |
Jun
(28) |
Jul
(65) |
Aug
(45) |
Sep
(57) |
Oct
(38) |
Nov
(14) |
Dec
(56) |
2006 |
Jan
(19) |
Feb
(73) |
Mar
(79) |
Apr
(77) |
May
(76) |
Jun
(28) |
Jul
(13) |
Aug
(24) |
Sep
(6) |
Oct
(25) |
Nov
(36) |
Dec
(19) |
2007 |
Jan
(12) |
Feb
(18) |
Mar
(9) |
Apr
(12) |
May
(8) |
Jun
(13) |
Jul
(9) |
Aug
(21) |
Sep
(14) |
Oct
(8) |
Nov
(36) |
Dec
(4) |
2008 |
Jan
(8) |
Feb
(16) |
Mar
(8) |
Apr
(9) |
May
(8) |
Jun
(4) |
Jul
(4) |
Aug
(6) |
Sep
(4) |
Oct
|
Nov
(6) |
Dec
(4) |
2009 |
Jan
|
Feb
(7) |
Mar
(9) |
Apr
(2) |
May
(12) |
Jun
|
Jul
(2) |
Aug
(29) |
Sep
(4) |
Oct
|
Nov
(11) |
Dec
(13) |
2010 |
Jan
(24) |
Feb
(4) |
Mar
(2) |
Apr
(7) |
May
|
Jun
(9) |
Jul
(8) |
Aug
(3) |
Sep
|
Oct
(7) |
Nov
(25) |
Dec
(18) |
2011 |
Jan
(4) |
Feb
(34) |
Mar
(15) |
Apr
(13) |
May
(35) |
Jun
(27) |
Jul
(22) |
Aug
(6) |
Sep
(4) |
Oct
(7) |
Nov
(12) |
Dec
(7) |
2012 |
Jan
(2) |
Feb
(11) |
Mar
(14) |
Apr
|
May
|
Jun
(2) |
Jul
(4) |
Aug
(10) |
Sep
(6) |
Oct
(4) |
Nov
(6) |
Dec
(2) |
2013 |
Jan
(6) |
Feb
(4) |
Mar
|
Apr
|
May
(1) |
Jun
|
Jul
(2) |
Aug
(1) |
Sep
(4) |
Oct
(1) |
Nov
|
Dec
(10) |
2014 |
Jan
(1) |
Feb
|
Mar
(3) |
Apr
(3) |
May
(2) |
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2015 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
(10) |
Aug
(4) |
Sep
(1) |
Oct
|
Nov
(7) |
Dec
(1) |
2016 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
(4) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
(3) |
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2018 |
Jan
(1) |
Feb
(2) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
|
Jul
(15) |
Aug
(6) |
Sep
(1) |
Oct
|
Nov
(5) |
Dec
(2) |
2019 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
(2) |
May
(2) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
(2) |
Nov
(3) |
Dec
|
2020 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(2) |
Jun
(1) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
From: NENNIG B. <ben...@su...> - 2020-11-12 09:57:35
|
Dear mayavi users, I would like to use `data_set_clip` in order to remove everything outside a bounding box after points3d plot. I have try, this example ``` t = np.linspace(0, 1, 5) x = np.cos(t) y = np.sin(t) z = t s = mlab.points3d(x, y, z) clip = mlab.pipeline.data_set_clipper(s) mlab.show() ``` and I get: 2020-11-12 10:16:11.218 ( 1,426s) [ A0CF5700] vtkPolyData.cxx:961 ERR| vtkPolyData (0x562c090b1340): Error while constructing cell map: Invalid cell size for polys. All tried examples from mlab.test_* run without problem. Have you an idea on where I am wrong ? It seems to be linked to `points3d`, since ``` x, y = np.meshgrid(np.linspace(0,1, 20), np.linspace(0,1, 20)) z = x*x + y*y s = mlab.mesh(x, y, z) clip = mlab.pipeline.data_set_clipper(s) ``` draw, the clip box without error, although the clip is not done... I have a fresh mayavi install from conda mayavi 4.7.2, vtk 9.0.1 python 3.7, ubuntu 16.04 and I use export MESA_GL_VERSION_OVERRIDE=3.2 Thanks, Benoit |
From: Prabhu R. <pr...@ae...> - 2020-08-31 16:32:12
|
<html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body> <tt>Hello,<br> <br> We are pleased to announce Mayavi-4.7.2. Mayavi is a general purpose,<br> cross-platform Python package for 2-D and 3-D scientific data visualization.<br> Mayavi integrates seamlessly with NumPy and provides a convenient Pythonic<br> wrapper for VTK (<a class="moz-txt-link-freetext" href="http://www.vtk.org" moz-do-not-send="true">http://www.vtk.org</a>). It provides a stand-alone UI to help<br> visualize your data and works on Jupyter notebooks as well. Mayavi is easy <br> to extend and embed in your own dialogs and UIs.<br> <br> For more information see here:<br> <br> <a class="moz-txt-link-freetext" href="https://docs.enthought.com/mayavi/mayavi/index.html" moz-do-not-send="true">https://docs.enthought.com/mayavi/mayavi/index.html</a><br> <br> <br> The significant update for this release is that it is compatible with the<br> latest VTK-9.x series and is known to work with VTK 9.0.1 from PyPI. The<br> picker UI has changed to no longer pop up a UI window but instead show the<br> picked attributes on the render window directly. The original picker UI is now<br> available on the scene's UI in a separate "Picker" tab. This is accessible<br> from either the pipeline view when one edits the properties of a scene or<br> through the "configure scene" gear icon on the scene window toolbar.<br> <br> For more details see <a class="moz-txt-link-freetext" href="https://docs.enthought.com/mayavi/mayavi/auto/changes.html#mayavi-4-7-2" moz-do-not-send="true">https://docs.enthought.com/mayavi/mayavi/auto/changes.html#mayavi-4-7-2</a><br> <br> 36 pull requests were merged.<br> <br> Thanks to the following who contributed to this release (in alphabetical<br> order): Amal S Sebastian, Eric Larson, Guillaume Favelier, Hans Moritz<br> Günther, Magnus Nord, Mark Dickinson, Poruri Sai Rahul, Prabhu Ramachandran,<br> Scott Talbert, Tetsuo Koyama.<br> <br> cheers,<br> Mayavi developers<br> </tt><br> </body> </html> |
From: Madicken M. <mad...@gm...> - 2020-06-01 05:53:44
|
Hi all, We are extending the deadline of the contest to Friday, June 05. We look forward to receiving your submissions to the contest. John Hunter Excellence in Plotting Contest Co-Chairs Madicken Munk Nelle Varoquaux On Thu, May 28, 2020 at 12:17 AM Madicken Munk <mad...@gm...> wrote: > Dear all, > > > My apologies for repeated in-list and cross-list posts! > > > I'd like to remind everybody that the 2020 John Hunter Excellence in > Plotting Contest submission deadline is on June 01 -- only a few days away. > We welcome and look forward to your submissions! > > > In memory of John Hunter, we are pleased to announce the John Hunter > Excellence in Plotting Contest for 2020. This open competition aims to > highlight the importance of data visualization to scientific progress and > showcase the capabilities of open source software. > > Participants are invited to submit scientific plots to be judged by a > panel. The winning entries will be announced and displayed at SciPy 2020 or > announced in the John Hunter Excellence in Plotting Contest website and > youtube channel. > > John Hunter’s family are graciously sponsoring cash prizes for the winners > in the following amounts: > > > - > > 1st prize: $1000 > - > > 2nd prize: $750 > - > > 3rd prize: $500 > > > > - > > Entries must be submitted by June 1st to the form at > https://forms.gle/SrexmkDwiAmDc7ej7 > - > > Winners will be announced at Scipy 2020 or publicly on the John Hunter > Excellence in Plotting Contest website and youtube channel > - > > Participants do not need to attend the Scipy conference. > - > > Entries may take the definition of “visualization” rather broadly. > Entries may be, for example, a traditional printed plot, an interactive > visualization for the web, a dashboard, or an animation. > - > > Source code for the plot must be provided, in the form of Python code > and/or a Jupyter notebook, along with a rendering of the plot in a widely > used format. The rendering may be, for example, PDF for print, standalone > HTML and Javascript for an interactive plot, or MPEG-4 for a video. If the > original data can not be shared for reasons of size or licensing, "fake" > data may be substituted, along with an image of the plot using real data. > - > > Each entry must include a 300-500 word abstract describing the plot > and its importance for a general scientific audience. > - > > Entries will be judged on their clarity, innovation and aesthetics, > but most importantly for their effectiveness in communicating a real-world > problem. Entrants are encouraged to submit plots that were used during the > course of research or work, rather than merely being hypothetical. > - > > SciPy and the John Hunter Excellence in Plotting Contest organizers > reserves the right to display any and all entries, whether prize-winning or > not, at the conference, use in any materials or on its website, with > attribution to the original author(s). > - > > Past entries can be found at https://jhepc.github.io/ > - > > Questions regarding the contest can be sent to > jhe...@gm... > > > John Hunter Excellence in Plotting Contest Co-Chairs > > Madicken Munk > > Nelle Varoquaux > |
From: Madicken M. <mad...@gm...> - 2020-05-28 05:18:05
|
Dear all, My apologies for repeated in-list and cross-list posts! I'd like to remind everybody that the 2020 John Hunter Excellence in Plotting Contest submission deadline is on June 01 -- only a few days away. We welcome and look forward to your submissions! In memory of John Hunter, we are pleased to announce the John Hunter Excellence in Plotting Contest for 2020. This open competition aims to highlight the importance of data visualization to scientific progress and showcase the capabilities of open source software. Participants are invited to submit scientific plots to be judged by a panel. The winning entries will be announced and displayed at SciPy 2020 or announced in the John Hunter Excellence in Plotting Contest website and youtube channel. John Hunter’s family are graciously sponsoring cash prizes for the winners in the following amounts: - 1st prize: $1000 - 2nd prize: $750 - 3rd prize: $500 - Entries must be submitted by June 1st to the form at https://forms.gle/SrexmkDwiAmDc7ej7 - Winners will be announced at Scipy 2020 or publicly on the John Hunter Excellence in Plotting Contest website and youtube channel - Participants do not need to attend the Scipy conference. - Entries may take the definition of “visualization” rather broadly. Entries may be, for example, a traditional printed plot, an interactive visualization for the web, a dashboard, or an animation. - Source code for the plot must be provided, in the form of Python code and/or a Jupyter notebook, along with a rendering of the plot in a widely used format. The rendering may be, for example, PDF for print, standalone HTML and Javascript for an interactive plot, or MPEG-4 for a video. If the original data can not be shared for reasons of size or licensing, "fake" data may be substituted, along with an image of the plot using real data. - Each entry must include a 300-500 word abstract describing the plot and its importance for a general scientific audience. - Entries will be judged on their clarity, innovation and aesthetics, but most importantly for their effectiveness in communicating a real-world problem. Entrants are encouraged to submit plots that were used during the course of research or work, rather than merely being hypothetical. - SciPy and the John Hunter Excellence in Plotting Contest organizers reserves the right to display any and all entries, whether prize-winning or not, at the conference, use in any materials or on its website, with attribution to the original author(s). - Past entries can be found at https://jhepc.github.io/ - Questions regarding the contest can be sent to jhe...@gm... John Hunter Excellence in Plotting Contest Co-Chairs Madicken Munk Nelle Varoquaux |
From: Godbey, R. A <ra...@ps...> - 2020-05-24 13:04:35
|
I am using mlab.surf to convert a grayscale image into a 3d image based on brightness per pixel. What I want to do is in the 3d plot, have different pixel heights be different colors based on elevation. This is what I am doing. Any suggestions? import numpy as np import cv2 from mayavi import mlab orig = cv2.imread(".\orig.png") x = np.mgrid[0:orig.shape[0]] y = np.mgrid[0:orig.shape[1]] mlab.surf(x,y,orig, colormap='jet', warp_scale='auto') This gives me a beautiful object in grayscale but it would be made easier to visualize in color. Ryan Godbey The Pennsylvania State University | Class of 2021 Candidate for Bachelor of Science in Physics |
From: Madicken M. <mad...@gm...> - 2020-03-17 15:47:57
|
Dear all, In memory of John Hunter, we are pleased to announce the John Hunter Excellence in Plotting Contest for 2020. This open competition aims to highlight the importance of data visualization to scientific progress and showcase the capabilities of open source software. Participants are invited to submit scientific plots to be judged by a panel. The winning entries will be announced and displayed at SciPy 2020 or announced in the John Hunter Excellence in Plotting Contest website and youtube channel. John Hunter’s family are graciously sponsoring cash prizes for the winners in the following amounts: - 1st prize: $1000 - 2nd prize: $750 - 3rd prize: $500 - Entries must be submitted by June 1st to the form at https://forms.gle/SrexmkDwiAmDc7ej7 - Winners will be announced at Scipy 2020 in Austin, TX or publicly on the John Hunter Excellence in Plotting Contest website and youtube channel - Participants do not need to attend the Scipy conference. - Entries may take the definition of “visualization” rather broadly. Entries may be, for example, a traditional printed plot, an interactive visualization for the web, a dashboard, or an animation. - Source code for the plot must be provided, in the form of Python code and/or a Jupyter notebook, along with a rendering of the plot in a widely used format. The rendering may be, for example, PDF for print, standalone HTML and Javascript for an interactive plot, or MPEG-4 for a video. If the original data can not be shared for reasons of size or licensing, "fake" data may be substituted, along with an image of the plot using real data. - Each entry must include a 300-500 word abstract describing the plot and its importance for a general scientific audience. - Entries will be judged on their clarity, innovation and aesthetics, but most importantly for their effectiveness in communicating a real-world problem. Entrants are encouraged to submit plots that were used during the course of research or work, rather than merely being hypothetical. - SciPy and the John Hunter Excellence in Plotting Contest organizers reserves the right to display any and all entries, whether prize-winning or not, at the conference, use in any materials or on its website, with attribution to the original author(s). - Past entries can be found at https://jhepc.github.io/ - Questions regarding the contest can be sent to jhe...@gm... John Hunter Excellence in Plotting Contest Co-Chairs Madicken Munk Nelle Varoquaux |
From: Prabhu R. <pr...@ae...> - 2019-11-21 03:18:42
|
Hi Alberto, Last year I cleaned up the pipeline to properly support multi-block data. I did have some AMR related experiments but I did not get too far since I did not really have experience or datasets that needed that working. There is an example showing how multi-block datasets can be created and used. https://github.com/enthought/mayavi/blob/master/examples/mayavi/advanced_visualization/multi_block.py So in principle this should help I imagine. Feel free to build on this. cheers, Prabhu On 11/17/19 1:27 AM, Alberto Scotti wrote: > I am currently shopping for Python based data visualization tools for our CFD > code. > The code is an AMR solver, and uses Python scripts to handle IO to files (uses > h5py). > Therefore, we are looking for a Python solution for visualization. I found > some very old > (<2007) threads on the list mentioning AMR, but I was wondering if there has > been any development. > Thank you > Alberto Scoti > UNC Chapel Hill > > > _______________________________________________ > MayaVi-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/mayavi-users |
From: Alberto S. <ulu...@gm...> - 2019-11-16 19:58:07
|
I am currently shopping for Python based data visualization tools for our CFD code. The code is an AMR solver, and uses Python scripts to handle IO to files (uses h5py). Therefore, we are looking for a Python solution for visualization. I found some very old (<2007) threads on the list mentioning AMR, but I was wondering if there has been any development. Thank you Alberto Scoti UNC Chapel Hill |
From: Jann P. <Jan...@ma...> - 2019-11-07 14:55:41
|
Hi, I'm trying to adapt the volume_slice.py example to get acquainted with Mayavi for my visualization project. However, by simply changing the mlab.pipeline.scalar_field() invocation slightly, I broke the 3D view (the side views still work). Let me break it down: First of all, I'm referring to this example: https://docs.enthought.com/mayavi/mayavi/auto/example_volume_slicer.html#example-volume-slicer ===Globals in the example: === x, y, z = np.ogrid[-5:5:64j, -5:5:64j, -5:5:64j] data = np.sin(3*x)/x + 0.05*z**2 + np.cos(3*y) ===My added globals:=== cube_resolution=64j cube_mag=5 xindices=np.stack([np.stack([np.mgrid[-cube_mag:cube_mag:cube_resolution] for _ in range(int(cube_resolution.imag))],axis=0 ) for _ in range(int(cube_resolution.imag))], axis=0) yindices=np.stack([np.stack([np.mgrid[-cube_mag:cube_mag:cube_resolution] for _ in range(int(cube_resolution.imag))],axis=0 ) for _ in range(int(cube_resolution.imag))], axis=2) zindices=np.stack([np.stack([np.mgrid[-cube_mag:cube_mag:cube_resolution] for _ in range(int(cube_resolution.imag))],axis=1 ) for _ in range(int(cube_resolution.imag))], axis=1) ===Data source as defined in the example:=== def _data_src3d_default(self): return mlab.pipeline.scalar_field(data, figure=self.scene3d.mayavi_scene) ===Data source as modified by me:=== def _data_src3d_default(self): return mlab.pipeline.scalar_field(xindices, yindices, zindices, self.data_generator, figure=self.scene3d.mayavi_scene) where self.data_generator() is set to an instance of: class ReproduceOriginalExample: def __call__(self, x, y, z): return np.sin(3*x)/x + 0.05*z**2 + np.cos(3*y) ===Expected result:=== All four views in the window look the same as before. ===Actual result:=== The bottom right view (3D view) only contains a single white line. The other three views look the same as before (they even still allow interaction). ===Reasoning=== In my view, the actual data should be the same in both examples, even if it is generated in two different way. So the pipeline and hence the display should also be the same. What am I overlooking? Best, Jann Poppinga Application Engineer ________________________________ Materialise GmbH Mary-Somerville-Str. 3 * 28359 Bremen * Deutschland Tel. +49 421 944 074 30 * Fax +49 421 944 074 49 http://www.materialise.de<http://www.materialise.de/> Geschäftsführer: Johan Pauwels, Marcus Joppe HRB 129938 Jann Poppinga Application Engineer ________________________________ Materialise GmbH Mary-Somerville-Str. 3 * 28359 Bremen * Deutschland Tel. +49 421 944 074 30 * Fax +49 421 944 074 49 http://www.materialise.de<http://www.materialise.de/> Geschäftsführer: Johan Pauwels, Marcus Joppe HRB 129938 |
From: Prabhu R. <pr...@ae...> - 2019-10-10 06:27:35
|
Hi, Mayavi does not support VASP files directly and you will need to use some reader for it and then visualize the output. There may be custom tools written to visualize VASP output files. Mayavi can be scripted to visualize raw data but this requires a good knowledge of Python and numpy. The mayavi documentation should help you visualize raw data but unfortunately, it will not visualize your VASP files. Paraview should do this though and you might want to try out paraview. cheers, Prabhu On 10/10/19 1:10 AM, Dinesh Thapa wrote: > Dear Developers, > I am new in using mayavi.I have installed mayavi in my linux system. But i am > not being able to open its interface. Please let me know how could i drag or > open my input files in file.vasp format. Actually, I want to plot 3D vector of > magnetization density from VASP output. > Sincerely, > Dinesh Thapa > > > _______________________________________________ > MayaVi-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/mayavi-users |
From: Dinesh T. <din...@gm...> - 2019-10-09 19:40:25
|
Dear Developers, I am new in using mayavi.I have installed mayavi in my linux system. But i am not being able to open its interface. Please let me know how could i drag or open my input files in file.vasp format. Actually, I want to plot 3D vector of magnetization density from VASP output. Sincerely, Dinesh Thapa |
From: Prabhu R. <pr...@ae...> - 2019-08-26 17:07:36
|
Yes, this is an issue with pyface it looks like: https://github.com/enthought/mayavi/issues/809 It will take a while for me to get to that unfortunately. cheers, Prabhu On 8/26/19 9:38 PM, Praveen C wrote: > Dear all > > I am using mayavi2 on mac osx installed via anaconda. > > When I open it, the window sizes are all bad. The TVTK window is too small. I > have to adjust them every time I open mayavi and the settings dont get saved. > > > Is there a way to save the window sizes ? > > Thanks > praveen > > > _______________________________________________ > MayaVi-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/mayavi-users |
From: Praveen C <cpr...@gm...> - 2019-08-26 16:33:51
|
Dear all I am using mayavi2 on mac osx installed via anaconda. When I open it, the window sizes are all bad. The TVTK window is too small. I have to adjust them every time I open mayavi and the settings dont get saved. Is there a way to save the window sizes ? Thanks praveen |
From: Prabhu R. <pr...@ae...> - 2019-07-01 10:02:11
|
Hello, We are pleased to announce Mayavi-4.7.0. Mayavi is a general purpose, cross-platform Python package for 2-D and 3-D scientific data visualization. Mayavi integrates seamlessly with NumPy and provides a convenient Pythonic wrapper for VTK (http://www.vtk.org). It provides a stand-alone UI to help visualize your data. Mayavi is easy to extend and embed in your own dialogs and UIs. For more information see here: http://docs.enthought.com/mayavi/mayavi/index.html The biggest new feature is that we have fully functional jupyter notebook support with a new backend (which is now the default) and is discussed here: http://docs.enthought.com/mayavi/mayavi/tips.html#using-mayavi-in-jupyter-notebooks This does not require WebGL. Changes ------- - New Jupyter notebook 'ipy' backend which is now the default and requires that VTK's offscreen support work correctly. This backend requires ipywidgets and ipyevents. It allows complete interactivity and behaves almost exactly like a normal UI backend but inside a notebook. Note that this will still require an xserver or windowing toolkit unless VTK is compiled to be able to work without those. - Detect the EGL/OSMesa support and use it for offscreen rendering if possible. - Fix several bugs. - Improve testing on travis. For more details see http://docs.enthought.com/mayavi/mayavi/auto/changes.html#mayavi-4-7-0 19 pull requests were merged. Thanks to the following who contributed to this release (in alphabetical order): Eric Larson, Poruri Sai Rahul, Prabhu Ramachandran, Stefan Sandfeld, and Todd. Thanks to Enthought for funding the work that led to the significantly improved Jupyter notebook support. cheers, Mayavi developers |
From: G R <kae...@gm...> - 2019-05-19 11:42:00
|
Hello, I have install mayavi on a MacBook Pro using conda. I have the following error message when I try to launch mayavi : File "/anaconda3/envs/pyforge/lib/python2.7/site-packages/traits/trait_notifiers.py", line 591, in _dispatch_change_event self.dispatch(handler, *args) File "/anaconda3/envs/pyforge/lib/python2.7/site-packages/traits/trait_notifiers.py", line 695, in dispatch handler(*args) File "/anaconda3/envs/pyforge/lib/python2.7/site-packages/envisage/plugins/python_shell/view/python_shell_view.py", line 242, in _on_write_stdout self.shell.control.write(text) File "/anaconda3/envs/pyforge/lib/python2.7/site-packages/pyface/ui/qt4/python_shell.py", line 221, in write self._buffer.write(text) Does anyone have an idea on solving this issue? Here is the list of packages I have installed # packages in environment at /anaconda3/envs/pyforge: # # Name Version Build Channel apptools 4.4.0 py27_1002 conda-forge asn1crypto 0.24.0 py27_1003 conda-forge backports 1.0 py_2 conda-forge backports.functools_lru_cache 1.5 py_1 conda-forge backports.lzma 0.0.13 py27h5079462_1000 conda-forge backports_abc 0.5 py_1 conda-forge blosc 1.16.3 h0a44026_0 conda-forge bzip2 1.0.6 h1de35cc_1002 conda-forge ca-certificates 2019.3.9 hecc5488_0 conda-forge certifi 2019.3.9 py27_0 conda-forge cffi 1.12.3 py27hccf1714_0 conda-forge chardet 3.0.4 py27_1003 conda-forge configobj 5.0.6 py_0 conda-forge cryptography 2.6.1 py27h212c5bf_0 conda-forge curl 7.64.1 h22ea746_0 conda-forge cycler 0.10.0 py_1 conda-forge dbus 1.13.6 h2f22bb5_0 conda-forge enum34 1.1.6 py27_1001 conda-forge envisage 4.7.2 py_0 conda-forge expat 2.2.5 h0a44026_1002 conda-forge fastcache 1.1.0 py27h01d97ff_0 conda-forge freetype 2.10.0 h24853df_0 conda-forge funcsigs 1.0.2 py_3 conda-forge functools32 3.2.3.2 py_3 conda-forge future 0.17.1 py27_1000 conda-forge futures 3.2.0 py27_1000 conda-forge gettext 0.19.8.1 h46ab8bc_1002 conda-forge glib 2.58.3 h2836805_1001 conda-forge gmp 6.1.2 h0a44026_1000 conda-forge gmpy2 2.0.8 py27h3aece09_1002 conda-forge hdf4 4.2.13 hf3c6af0_1002 conda-forge hdf5 1.10.4 nompi_h0cbb7df_1106 conda-forge icu 58.2 h0a44026_1000 conda-forge idna 2.8 py27_1000 conda-forge ipaddress 1.0.22 py_1 conda-forge jpeg 9c h1de35cc_1001 conda-forge jsoncpp 1.8.4 h04f5b5a_1001 conda-forge kiwisolver 1.1.0 py27h770b8ee_0 conda-forge krb5 1.16.3 hcfa6398_1001 conda-forge libblas 3.8.0 10_openblas conda-forge libcblas 3.8.0 10_openblas conda-forge libcurl 7.64.1 h16faf7d_0 conda-forge libcxx 8.0.0 2 conda-forge libcxxabi 8.0.0 2 conda-forge libedit 3.1.20170329 hcfe32e1_1001 conda-forge libffi 3.2.1 h6de7cb9_1006 conda-forge libgfortran 3.0.1 0 conda-forge libiconv 1.15 h01d97ff_1005 conda-forge liblapack 3.8.0 10_openblas conda-forge libnetcdf 4.6.2 h6b88ef6_1001 conda-forge libpng 1.6.37 h2573ce8_0 conda-forge libssh2 1.8.2 hcdc9a53_2 conda-forge libtiff 4.0.10 h79f4b77_1001 conda-forge libxml2 2.9.9 hd80cff7_0 conda-forge lz4-c 1.8.3 h6de7cb9_1001 conda-forge matplotlib 2.2.3 py27_1 conda-forge matplotlib-base 2.2.3 py27hd64abcd_1 conda-forge mayavi 4.6.2 py27ha281634_4 conda-forge mock 3.0.5 py27_0 conda-forge mpc 1.1.0 h3aece09_1006 conda-forge mpfr 4.0.2 h0a95893_0 conda-forge mpi 1.0 openmpi conda-forge mpi4py 3.0.1 py27h27a7d74_0 conda-forge mpmath 1.1.0 py_0 conda-forge ncurses 6.1 h0a44026_1002 conda-forge numexpr 2.6.9 py27h1702cab_1000 conda-forge numpy 1.16.3 py27hdf140aa_0 conda-forge openblas 0.3.6 hd44dcd8_2 conda-forge openmpi 3.1.4 ha90c164_0 conda-forge openssl 1.1.1b h01d97ff_2 conda-forge pcre 8.41 h0a44026_1003 conda-forge pip 19.1 py27_0 conda-forge pthread-stubs 0.4 h1de35cc_1001 conda-forge pycparser 2.19 py27_1 conda-forge pyface 6.0.0 py_1 conda-forge pygments 2.4.0 py_0 conda-forge pyopenssl 19.0.0 py27_0 conda-forge pyparsing 2.4.0 py_0 conda-forge pyqt 4.11.4 py27_2 conda-forge pysocks 1.7.0 py27_0 conda-forge pytables 3.5.1 py27h689b3ec_1 conda-forge python 2.7.15 h932b40d_1008 conda-forge python-dateutil 2.8.0 py_0 conda-forge python.app 1.2 py27h1de35cc_1200 conda-forge pytz 2019.1 py_0 conda-forge qt 4.8.7 1 readline 7.0 hcfe32e1_1001 conda-forge requests 2.22.0 py27_0 conda-forge scipy 1.2.1 py27hbd7caa9_1 conda-forge setuptools 41.0.1 py27_0 conda-forge sfepy 2018.4 py27_0 conda-forge singledispatch 3.4.0.3 py27_1000 conda-forge sip 4.18 py27_1 conda-forge six 1.12.0 py27_1000 conda-forge sqlite 3.26.0 h1765d9f_1001 conda-forge subprocess32 3.5.3 py27h470a237_0 conda-forge sympy 1.4 py27_0 conda-forge tbb 2019.4 h04f5b5a_0 conda-forge tk 8.6.9 ha441bb4_1001 conda-forge tornado 5.1.1 py27h1de35cc_1000 conda-forge traits 5.1.1 py27h01d97ff_0 conda-forge traitsui 6.1.0 py_0 conda-forge urllib3 1.24.3 py27_0 conda-forge vtk 8.2.0 py27h9382d79_201 conda-forge wheel 0.33.4 py27_0 conda-forge wxpython 4.0.4 py27hc32aefd_0 conda-forge xz 5.2.4 h1de35cc_1001 conda-forge zlib 1.2.11 h1de35cc_1004 conda-forge Regards |
From: Pacome N. <pac...@gm...> - 2019-05-04 14:19:06
|
Hi all, I Have just installed *mayavi* via pip and decided to run the example here https://scipy-cookbook.readthedocs.io/items/MayaVi_ScriptingMayavi2_MainModules.html which shows how to plot 3D data with the module *"ScalarCutPlane"*. I have been trying to reproduce *examle#2* but I always get the following error message: File "/...../scalarcutplane.py", line 12, in <module> scp.module_manager.scalar_lut_manager.data_range = [0, 1] AttributeError: 'NoneType' object has no attribute 'scalar_lut_manager' Here is how my .py file looks like: import mayavi from mayavi.modules.scalar_cut_plane import ScalarCutPlane ### cutplane #1, normal to Ox, opacity = 0.2, representation = surface scp = ScalarCutPlane() # # script.add_module(scp) scp.implicit_plane.normal = (1, 0, 0) scp.implicit_plane.origin = (25, 25, 25) scp.implicit_plane.widget.enabled = False scp.actor.property.diffuse = 0.0 scp.actor.property.ambient = 1.0 scp.actor.property.opacity = 0.2 scp.module_manager.scalar_lut_manager.data_range = [0, 1] *How to deal with this issue, please?* Regards, Pacome *___* *_____________*Pacome NGUIMEYA Ph.D. Candidate Computational Condensed Matter Physics University of Cape Town (UCT), South Africa *“Be Yourself; everyone else is already taken.” * *Oscar Wilde* |
From: Madicken M. <mad...@gm...> - 2019-04-26 21:31:45
|
Hi everybody, I'd like to remind you all about the 2019 John Hunter Excellence in Plotting Contest. My apologies to those of you getting this on multiple lists. In memory of John Hunter, we are pleased to be reviving the SciPy John Hunter Excellence in Plotting Competition for 2019. This open competition aims to highlight the importance of data visualization to scientific progress and showcase the capabilities of open source software. Participants are invited to submit scientific plots to be judged by a panel. The winning entries will be announced and displayed at the conference. John Hunter’s family and NumFocus are graciously sponsoring cash prizes for the winners in the following amounts: - 1st prize: $1000 - 2nd prize: $750 - 3rd prize: $500 - Entries must be submitted by June, 8th to the form at https://goo.gl/forms/cFTB3FUBrMPfQ7Vz1 - Winners will be announced at Scipy 2019 in Austin, TX. - Participants do not need to attend the Scipy conference. - Entries may take the definition of “visualization” rather broadly. Entries may be, for example, a traditional printed plot, an interactive visualization for the web, or an animation. - Source code for the plot must be provided, in the form of Python code and/or a Jupyter notebook, along with a rendering of the plot in a widely used format. This may be, for example, PDF for print, standalone HTML and Javascript for an interactive plot, or MPEG-4 for a video. If the original data can not be shared for reasons of size or licensing, "fake" data may be substituted, along with an image of the plot using real data. - Each entry must include a 300-500 word abstract describing the plot and its importance for a general scientific audience. - Entries will be judged on their clarity, innovation and aesthetics, but most importantly for their effectiveness in communicating a real-world problem. Entrants are encouraged to submit plots that were used during the course of research or work, rather than merely being hypothetical. - SciPy reserves the right to display any and all entries, whether prize-winning or not, at the conference, use in any materials or on its website, with attribution to the original author(s). SciPy John Hunter Excellence in Plotting Competition Co-Chairs Hannah Aizenman Thomas Caswell Madicken Munk Nelle Varoquaux |
From: koushik n. <kou...@gm...> - 2019-04-15 13:14:10
|
I'm trying to learn mayavi to plot some 3D data. My xy grid typically looks like this import numpy from mayavi import mlab x,y = numpy.mgrid[0:90:3j, 0:360:3j] z= #some calculation mlab.surf(x, y, z) mlab.show() the plot looks like [image: test.jpg] But the plot using gnuplot looks like this [image: gnutest.jpg.png] How do I fix this? |
From: Madicken M. <mad...@gm...> - 2019-03-18 15:48:37
|
In memory of John Hunter, we are pleased to be reviving the SciPy John Hunter Excellence in Plotting Competition for 2019. This open competition aims to highlight the importance of data visualization to scientific progress and showcase the capabilities of open source software. Participants are invited to submit scientific plots to be judged by a panel. The winning entries will be announced and displayed at the conference. John Hunter’s family and NumFocus are graciously sponsoring cash prizes for the winners in the following amounts: - 1st prize: $1000 - 2nd prize: $750 - 3rd prize: $500 - Entries must be submitted by June, 8th to the form at https://goo.gl/forms/cFTB3FUBrMPfQ7Vz1 - Winners will be announced at Scipy 2019 in Austin, TX. - Participants do not need to attend the Scipy conference. - Entries may take the definition of “visualization” rather broadly. Entries may be, for example, a traditional printed plot, an interactive visualization for the web, or an animation. - Source code for the plot must be provided, in the form of Python code and/or a Jupyter notebook, along with a rendering of the plot in a widely used format. This may be, for example, PDF for print, standalone HTML and Javascript for an interactive plot, or MPEG-4 for a video. If the original data can not be shared for reasons of size or licensing, "fake" data may be substituted, along with an image of the plot using real data. - Each entry must include a 300-500 word abstract describing the plot and its importance for a general scientific audience. - Entries will be judged on their clarity, innovation and aesthetics, but most importantly for their effectiveness in communicating a real-world problem. Entrants are encouraged to submit plots that were used during the course of research or work, rather than merely being hypothetical. - SciPy reserves the right to display any and all entries, whether prize-winning or not, at the conference, use in any materials or on its website, with attribution to the original author(s). SciPy John Hunter Excellence in Plotting Competition Co-Chairs Hannah Aizenman Thomas Caswell Madicken Munk Nelle Varoquaux |
From: Brian H. M. <bri...@ma...> - 2019-01-21 15:42:01
|
Hi, I'm trying to animate an imshow() plot. Here is my example: ------ import numpy as np from numpy import pi from mayavi import mlab Nx = 200 Ny = 200 N = 100 u0 = np.zeros((Nx,Ny)) nx = np.arange(Nx) ny = np.arange(Ny) nx = nx[:,None] amp = 2.0 c = 10.0 Ts = 1/30.0 v = np.array([2,1]) @mlab.animate(ui=False,delay=100) def main_loop(): for n in range(0,N): u0 = amp*np.sin(2*pi*(nx/Nx*v[0] + ny/Ny*v[1]) - c*n*Ts) #plotting if n==0: mlab.clf() fig = mlab.gcf() X,Y = np.mgrid[0:Nx,0:Ny] #h1 = mlab.surf(X,Y,u0,vmax=amp,vmin=-amp) h1 = mlab.imshow(u0,vmax=amp,vmin=-amp) mlab.axes(xlabel='x', ylabel='y', zlabel='z', nb_labels=5, color=(0., 0., 0.)) mlab.outline() mlab.colorbar() mlab.draw() else: h1.mlab_source.scalars = u0 mlab.draw() print('n=%d' % n) yield a = main_loop() mlab.show() ------ I'm not sure that 'h1.mlab_source.scalars = u0' is the correct way to update the imshow plot, but it doesn't seem to throw an error, yet the plot doesn't update. If you comment out the line with 'imshow', and uncomment the line with 'surf', you'll get an idea of what it should look like animated. I couldn't find anything in the documentation regarding this. The only thing I found was this unsolved SO post: https://stackoverflow.com/questions/40168623/how-to-animate-imshow-by-maya Any help would be appreciated! Appreciate all the hard work put into this! Best, -- Brian |
From: Isaac P. <isa...@gm...> - 2018-12-22 00:33:21
|
Hi. My name is Isaac. I'm new to Mayavi and I was successful at installing everything. I'm still learning it, but I'm able to run scripts and commands in python. However, I'm having trouble with the application "mayavi2" found in the Scripts folder of the installation. At the bottom, in the logger view, it says "Can't find the python shell to bind variables" and "Python Shell View Object has no attribute 'shell'". And when I go into "View", then "Other", and I click on "Python" and then click "OK," the whole application crashes. Any help on this issue would be greatly appreciated. Be able to use the shell python is a great feature and facilities learning and work in many ways. (I don't know how to give instructions on duplicating this error, this is just how it ended up working when the pip install was complete) Thank you, Isaac [image: Image 118.png] |
From: Prabhu R. <pr...@ae...> - 2018-12-08 04:06:33
|
Hi folks, There are some old and unused modules in Mayavi that I would like to remove, in particular, mayavi/tools/data_wizards/* tvtk/tools/mlab.py These are neither tested, nor do they seem used too much. If you do not want me to delete these, please do let me know. They are available as part of Mayavi-4.6.2 but will not be there in the next release unless there is an objection. cheers, Prabhu |
From: Francesco T. <fra...@ho...> - 2018-11-13 15:46:02
|
Thanks for the tips, i’ll already try to use ipyvolume first but i need to do complex visualization that are easyer to do with mayavi, maybe i’ll will try to use it again follow your assistance. I think, anyway, that i will wait for new developements. Thanks for your time and for your Prabhu. Da: Francesco Tinarelli<mailto:fra...@ho...> Inviato: martedì 13 novembre 2018 15:51 A: may...@li...<mailto:may...@li...> Oggetto: [MayaVi-users] R: Problem surface texture in jupyter Unfortunately i don’t see any texture exporting the image in x3d. So i think that there are no solution for this right now. Maybe there exist other methods for having a mayavi scene on the internet with the interactivity given by the mayavi application? Da: Prabhu Ramachandran<mailto:pr...@ae...> Inviato: venerdì 9 novembre 2018 01:54 A: may...@li...<mailto:may...@li...> Cc: Francesco Tinarelli<mailto:fra...@ho...> Oggetto: Re: [MayaVi-users] Problem surface texture in jupyter Hi Francesco, Unfortunately, what is displayed in the notebook is restricted to what VTK supports in its x3d exporter and it looks like there are some things that do not work as well as we would like. I can verify that textures are exported in the x3d file -- you can check by saving out the x3d image using scene.save_x3d('/tmp/ex.x3d') and see if that at least has the texture data. This could be an issue with the x3dom library or perhaps more likely with the x3d file that VTK exports. Unfortunately, I do not have the time to track this down myself but the issue is with VTK or the x3dom library. cheers, Prabhu On 11/6/18 11:10 AM, Francesco Tinarelli wrote: I’m doing an application using mayavi for 3d visualization about ambient datas, and i need a image like texture for a surface. When i use the mayavi application for visualize this surface there are no problem instead, when i use jupyter for an online visualization the surface begin gray and there are no texture on it. Can i have some help? [cid:par...@ae...] [cid:par...@ae...] _______________________________________________ MayaVi-users mailing list May...@li...<mailto:May...@li...> https://lists.sourceforge.net/lists/listinfo/mayavi-users |
From: Prabhu R. <pr...@ae...> - 2018-11-13 15:19:18
|
On 11/13/18 9:50 AM, Francesco Tinarelli wrote: > > Unfortunately i don’t see any texture exporting the image in x3d. So i think > that there are no solution for this right now. Maybe there exist other methods > for having a mayavi scene on the internet with the interactivity given by the > mayavi application? > In my tests the image was embedded in the x3d but not quite showing up right. Yes, there may be some developments to do this in a few months. If usage in a jupyter notebook is important take a look at ipyvolume which is nice. cheers, Prabhu > *Da: *Prabhu Ramachandran <mailto:pr...@ae...> > *Inviato: *venerdì 9 novembre 2018 01:54 > *A: *may...@li... > <mailto:may...@li...> > *Cc: *Francesco Tinarelli <mailto:fra...@ho...> > *Oggetto: *Re: [MayaVi-users] Problem surface texture in jupyter > > > > Hi Francesco, > > Unfortunately, what is displayed in the notebook is restricted to what VTK > supports in its x3d exporter and it looks like there are some things that do > not work as well as we would like. I can verify that textures are exported in > the x3d file -- you can check by saving out the x3d image using > > scene.save_x3d('/tmp/ex.x3d') > > and see if that at least has the texture data. This could be an issue with > the x3dom library or perhaps more likely with the x3d file that VTK exports. > Unfortunately, I do not have the time to track this down myself but the issue > is with VTK or the x3dom library. > > cheers, > Prabhu > > > On 11/6/18 11:10 AM, Francesco Tinarelli wrote: > > I’m doing an application using mayavi for 3d visualization about ambient > datas, and i need a image like texture for a surface. > > When i use the mayavi application for visualize this surface there are no > problem instead, when i use jupyter for an online visualization the > surface begin gray and there are no texture on it. Can i have some help? > cid:par...@ae...cid:par...@ae... > > > > > > > > > _______________________________________________ > > MayaVi-users mailing list > > May...@li... <mailto:May...@li...> > > https://lists.sourceforge.net/lists/listinfo/mayavi-users > > > > > > > > _______________________________________________ > MayaVi-users mailing list > May...@li... > https://lists.sourceforge.net/lists/listinfo/mayavi-users |
From: Francesco T. <fra...@ho...> - 2018-11-13 14:50:28
|
Unfortunately i don’t see any texture exporting the image in x3d. So i think that there are no solution for this right now. Maybe there exist other methods for having a mayavi scene on the internet with the interactivity given by the mayavi application? Da: Prabhu Ramachandran<mailto:pr...@ae...> Inviato: venerdì 9 novembre 2018 01:54 A: may...@li...<mailto:may...@li...> Cc: Francesco Tinarelli<mailto:fra...@ho...> Oggetto: Re: [MayaVi-users] Problem surface texture in jupyter Hi Francesco, Unfortunately, what is displayed in the notebook is restricted to what VTK supports in its x3d exporter and it looks like there are some things that do not work as well as we would like. I can verify that textures are exported in the x3d file -- you can check by saving out the x3d image using scene.save_x3d('/tmp/ex.x3d') and see if that at least has the texture data. This could be an issue with the x3dom library or perhaps more likely with the x3d file that VTK exports. Unfortunately, I do not have the time to track this down myself but the issue is with VTK or the x3dom library. cheers, Prabhu On 11/6/18 11:10 AM, Francesco Tinarelli wrote: I’m doing an application using mayavi for 3d visualization about ambient datas, and i need a image like texture for a surface. When i use the mayavi application for visualize this surface there are no problem instead, when i use jupyter for an online visualization the surface begin gray and there are no texture on it. Can i have some help? [cid:par...@ae...] [cid:par...@ae...] _______________________________________________ MayaVi-users mailing list May...@li...<mailto:May...@li...> https://lists.sourceforge.net/lists/listinfo/mayavi-users |