text_in_rectangles¶
-
hep_spt.
text_in_rectangles
(recs, txt, cax=None, **kwargs)[source]¶ Write text inside
matplotlib.patches.Rectangle
instances.- Parameters
recs (list(matplotlib.patches.Rectangle)) – set of rectangles to work with.
cax (matplotlib.axes.Axes) – axes where the rectangles are being drawn. If None, then the current axes are taken.
kwargs (dict) – any other argument to matplotlib.axes.Axes.annotate.