File.write gives you a CG 1 interpolation of the field you have in dolfin. For visualization of CG spaces >1 or DG spaces, you Need to use XDMFFile.write_checkpoint
, see for instance: Loading xdmf data back in - #4 by dokken
1 Like