Plotting Half of a Upper Triangular Matrix


I am plotting an upper triangular matrix where the bottom half of the matrix is full of zeros. The heatmap as it currently stands looks like the following

I would like to just essentially fold this in half however I am stumped on all fronts as to how to approach this. I realise this is quite an ask however I know there are some incredible things you can do in MAKIE. Then again this could be an algebra question of how to extract the upper triangular part of the matrix.


Would it help setting the lower part zeros to NaNs?


heatmap([i > j ? NaN : rand() for i in 1:10, j in 1:10]',
    axis = (; yreversed = true, aspect = 1))