# Plot with a legend:
#
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)
plt.tight_layout(pad=2)
