Bar code for monomial ideals