q function for spins
namespace fix
function for plotting spin distribution functions on a 2d projection