12.07.2015 Views

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

MATLAB Function Reference (Volume 2: Graphics)

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Text PropertiesExtentposition rectangle (read only)Position and size of text. A four-element read-only vector that defines the sizeand position of the text string.[left,bottom,width,height]If the Units property is set to data (the default), left and bottom are the x andy coordinates of the lower-left corner of the text Extent rectangle.For all other values of Units, left and bottom are the distance from thelower-left corner of the axes position rectangle to the lower-left corner of thetext Extent rectangle. width and height are the dimensions of the Extentrectangle. All measurements are in units specified by the Units property.FontAngle{normal} | italic | obliqueCharacter slant. <strong>MATLAB</strong> uses this property to select a font from thoseavailable on your particular system. Generally, setting this property to italicor oblique selects a slanted font.FontNameA name such as Courier or the string FixedWidthFont family. A string specifying the name of the font to use for the text object.To display and print properly, this must be a font that your system supports.The default font is Helvetica.Specifying a Fixed-Width FontIf you want text to use a fixed-width font that looks good in any locale, youshould set FontName to the string FixedWidth:set(text_handle,'FontName','FixedWidth')This eliminates the need to hardcode the name of a fixed-width font, which maynot display text properly on systems that do not use ASCII character encoding(such as in Japan where multibyte character sets are used). A properly written<strong>MATLAB</strong> application that needs to use a fixed-width font should set FontNameto FixedWidth (note that this string is case sensitive) and rely onFixedWidthFontName to be set correctly in the end-user’s environment.End users can adapt a <strong>MATLAB</strong> application to different locales or personalenvironments by setting the root FixedWidthFontName property to theappropriate value for that locale from startup.m.2-513

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!