Preparing to plot permuted matrix and blocks