old_contents: # -*- coding: utf-8 -*-
  """
  ====================================
  Plotting simple 3D graph with Mayavi
  ====================================
  
  A simple example of the plot of a 3D graph with Mayavi
  in order to test the autonomy of the gallery.
  """
  
  # Code source: Alex Gramfort
  # License: BSD 3 clause
  
  from mayavi import mlab
  
  mlab.test_plot3d()
  
  mlab.figure()
  mlab.test_contour3d()
  
new_contents: # -*- coding: utf-8 -*-
  """
  ====================================
  Plotting simple 3D graph with Mayavi
  ====================================
  
  A simple example of the plot of a 3D graph with Mayavi
  in order to test the autonomy of the gallery.
  """
  
  # Code source: Alex Gramfort
  # License: BSD 3 clause
  
  # sphinx_gallery_thumbnail_number = 4
  
  from mayavi import mlab
  
  mlab.test_plot3d()
  
  mlab.figure()
  mlab.test_contour3d()
  
  #####################################################################
  # Note: this shows that inside a cell matplotlib figures are always
  # put before mayavi in the example HTML. In other words, the order of
  # plotting is not respected between matplotlib and mayavi figures
  
  mlab.figure()
  mlab.test_mesh()
  
  mlab.figure()
  mlab.test_flow()
  
  import matplotlib.pyplot as plt
  plt.plot([1, 2, 3], [1, 2, 3])
  
subject: Tweak mayavi example