I have created rectangles in a plot and I want to insert some text (a digit) inside the rectangles. How can I do this?
You might try using LabelSet.
For a more detailed answer, we’d probably need a Minimal Reproducible Example (i.e. one that can be run start to finish by someone else) of the code you’re using to generate the plot or a simpler/generic version of the plot.