2012-05-10 10 views

答えて

15

あなたが行うことができます伝説の内部でそのテキストを配置する場合:

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

最も簡単です。短いテキストのためにこれを試してみてください

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

MATLABプロットのテキスト書式についての素晴らしい結論:http://www.mathworks.de/de/help/matlab/creating_plots/adding-text-to-graphs.html – mojjj

+1

'uicontrol'テキストは機能しません3D軸のために、それは? – embert

3

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

かを

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

をしててそれを周りに移動します。より多くの制御のために、しかし、あなたはFigureウィンドウ内のテキストボックスを置くことができますより複雑なアノテーションのためのこのソリューション:

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

関連する問題