plotting of the phase space for a given matrix