Does anybody know if it's possible not to represent half the pixels of the diagonal matrix using plt.imshow()?
This is graphically expressed what I am looking for:

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.transforms as mtransforms
import matplotlib
bins = 5
Z = np.random.rand(bins, bins)
# Select lower triangle values:
condition = np.tril(np.ones((Z.shape))).astype(np.bool)
Z = np.where(condition, Z, np.nan)
fig, ax = plt.subplots(figsize = (8,8))
ax.imshow(Z, cmap = 'Spectral')
I guess this could be done by covering the image with a mask, but it's an option I'd rather avoid.
