# Variants:
#
import numpy as np
from matplotlib import pyplot as plt
from nustattools import plotting as nuplt
rng = np.random.default_rng()
M = rng.uniform(size=(10,10)) - 0.5
nuplt.hinton(M, legend=True, shape="square", cmap="gray", origin="lower")
plt.tight_layout(pad=2)
