As part of the RADIOFOREGROUNDS project, and to provide user tools for our data products, we provide a python open source code (show_gridded_Bfield.py) to visualize 3D volumetric data for magnetic field models of the galaxy in an easy interactive way.
The code can be downloaded from here, or from this GitHub link. Check GitHub site for the very latest up-to-date version.
The script make use of the MayaVi Data Visualizer, that is free and distributed under the conditions of the BSD license and is a python library interface to the Visualization Toolkit (VTK) for the graphics. It is therefore cross platform and should run on most UNIX/Linux, Mac OSX and Windows where python and VTK are available. It should be possible to load via the package manager for most of the popular Linux distributions, by finding Mayavi2 or Mayavi and installing along with dependences.
Command line args: