Place text on borders of the figure, border of the subplots, on the inner-side or outer-side. Also control the most important text-properties with one simple FormatString.
Text stays on the borders, even while zooming, panning, etc.
Try 'bordertext' without arguments to see the demo (figure is added as screenshot)
I've discovered a strange behavior. If I export the figure the bordertext (innertopleft i.e.) is wrongly positioned (goes over the edge of the plot). If I move the mouse over the figure, the bordertext is repositioned correctly.
I tried to refresh the figure before exporting but it doesn't help, only mouseover seems to correctly position the bordertext.
Any idea how to fix this?
can you please comment on my request from one year ago? In your examples you have a 'margin' option, yet it doesn't seem to do anything, at least not in the way I would expect it to.
I'm still looking for a way to add a distance between the axis box and the bordertext. At the moment, there is no gap and the text is in direct contact with the box.
Thank you Arnold for your comment (and rating). I've solved the background overlap and I added the matlab syntax.
Your other suggestion to add transparency to the text background is impossible, because the text object has no BackgroundAlpha property.