Note
Go to the end to download the full example code.
TextMesh#
TextMesh is a class that allows you to layout text in a mesh style.
from marsilea.plotter import TextMesh
import numpy as np
import matplotlib.pyplot as plt
data = np.random.randint(0, 10, (10, 10))
_, ax = plt.subplots()
TextMesh(data).render(ax)

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