Note
Go to the end to download the full example code.
ColorMesh#
ColorMesh is a plotter that displays a 2D array as a
colored mesh.
from marsilea.plotter import ColorMesh
import numpy as np
import matplotlib.pyplot as plt
data = np.random.randint(0, 10, (10, 10))
_, ax = plt.subplots()
ColorMesh(data, annot=True).render(ax)

Total running time of the script: (0 minutes 0.734 seconds)