marsilea.plotter.TextMesh#

class TextMesh(texts, color='black', label=None, label_loc=None, label_props=None, **kwargs)#

Bases: MeshBase

The mesh that draw text on each cell

Parameters:
textsnp.ndarray

The text to draw

colorcolor

The color of the text

labelstr

The label of the plot, only show when added to the side plot

label_loc{‘top’, ‘bottom’, ‘left’, ‘right’}

The position of the label

label_propsdict

Props for label matplotlib.text.Text

kwargsdict

Pass to matplotlib.axes.Axes.text()

render_main = True#