--- aliases: - /2013/03/interactive-3d-plot-of-sky-map categories: - python - astrophysics date: 2013-03-12 19:49 layout: post slug: interactive-3d-plot-of-sky-map title: Interactive 3D plot of a sky map --- **update May 2024**: See the [new version of this tutorial](./2024-05-20-interactive-3d-plot-planck-map.md) Mayavi is a Python package from Enthought for 3D visualization, here a simple example of creating a 3D interactive map starting from a HEALPix pixelization sky map:




Here the code:


The output is a beautiful 3D interactive map, Mayavi allows to pan, zoom and rotate.
UPDATE 13 Mar: actually there was a bug (found by Marius Millea) in the script, there is no problem in the projection!

Mayavi can be installed in Ubuntu installing python-vtk and then sudo pip install mayavi.