Compact electrostatic levitator for diffraction measurements with a two axis diffractometer and a laboratory x-ray source.