Fix drawing of intersection matrix for any number of dimensions