Please change this block of code by:


r = fvtk.ren()
sfu = fvtk.sphere_funcs(odf[:, None, :], sphere, colormap='jet')
sfu.RotateX(-90)
fvtk.add(r, sfu)
#fvtk.show(r)
fvtk.record(r, n_frames=1, out_path='odfs.png', size=(600, 600))

Note that the show is commented in the example. The user can uncomment it if he wishes