Matlab add text to the outside of figure

前提是你 提交于 2019-12-04 08:15:31
zachd1_618

If you want to put that text inside of a legend you can do:

legend('Some quick information','location','EastOutside')

That is easiest. For more control though, you can put a text box inside the figure window:

MyBox = uicontrol('style','text')
set(MyBox,'String','Here is a lot more information')

and move it around with:

set(MyBox,'Position',[xpos,ypos,xsize,ysize])

Try this for short text:

plot(1:5);
text(5.05, 2.5, 'outside', 'clipping', 'off');

Or this solution for more complex annotations:

http://radio.feld.cvut.cz/matlab/techdoc/creating_plots/chaxes6.html

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!