Matlab - fixed text size when scaling

I want to keep the text size fixed when scaling the graph. Thus, I want to indicate the position of the four corners of the text area. To explain this in other words: when the graph is reduced, the text is unlikely to be noticeable, because it is so small. Is it possible? It should be, but I did not see any solution.

I'm drawing a circle so far

rectangle('Position',[xpos, ypos, 0.06, 0.2], 'Curvature',[1,1]);
% I wish to plot textstrings of num2str(val) inside the circle here
% Another alternative, to be able to se num2str(val) whenever I click the circle

Thanks in advance

/ fixitinthemix

+1
source share
1 answer

You can set the property FontUnitsin a text descriptor to scale the text using axes. See here for different possibilities.

+1
source

All Articles