From: Steven Lord on 24 Feb 2010 09:57 "Samoline1 Linke" <maganatewoman(a)yahoo.com> wrote in message news:hm30ns$stq$1(a)fred.mathworks.com... > "Pekka Kumpulainen" <pekka.nospam.kumpulainen(a)tut.please.fi> wrote in > message <hm2v72$liq$1(a)fred.mathworks.com>... >> "Samoline1 Linke" <maganatewoman(a)yahoo.com> wrote in message >> <hm2s3r$15p$1(a)fred.mathworks.com>... >> > Hi, >> > >> > I want to include a textbox in figure e.g. >> > >> > >> > plot(a,b) >> > H={'Testing textbox'} >> > text(0.5,0.5,H) >> > >> > Is this the right command? It's not working for me......I can not have >> > both the figure and the text in the same figure.........How shall I >> > make it to have both plot and the textbox in the same figure? >> >> The default 'units' property of text object is 'data'. >> If your text location 0.5 0.5 is outside the ranges of a and b it will >> exist, but outside the visible area of the axes. You could try for >> example: >> text(0.5,0.5,H,'Units','normalized') > > ------------- > > Thanks a lot and do you have any idea which values will put this textbox > under the x-axis........ If you're looking to label the X axis, use XLABEL as a first pass; if it looks the way you want, you won't have to try to position a text box on your own. If it doesn't, you could always tweak the properties of the object (using GET and SET on the output argument from XLABEL) rather than starting from scratch. -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
First
|
Prev
|
Pages: 1 2 Prev: Problem with IMRECT Next: from RGB to spectrum using macbeth colour checker |