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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Axes Propertiesor by using the xlabel, ylabel, or zlabel command). Tick mark labels changeimmediately.Specifying a Fixed-Width FontIf you want an axes to use a fixed-width font that looks good in any locale, youshould set FontName to the string FixedWidth:set(axes_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.Note that setting the root FixedWidthFontName property causes an immediateupdate of the display to use the new font.FontSizeFont size specified in FontUnitsFont size. An integer specifying the font size to use for axes labels and titles, inunits determined by the FontUnits property. The default point size is 12. Thex-, y-, and z-axis text labels do not display in a new font size until you manuallyreset them (by setting the XLabel, YLabel, or ZLabel properties or by using thexlabel, ylabel, or zlabel command). Tick mark labels change immediately.FontUnits {points} | normalized | inches |centimeters | pixelsUnits used to interpret the FontSize property. When set to normalized,<strong>MATLAB</strong> interprets the value of FontSize as a fraction of the height of theaxes. For example, a normalized FontSize of 0.1 sets the text characters to afont whose height is one tenth of the axes’ height. The default units (points),are equal to 1/72 of an inch.FontWeight{normal} | bold | light | demiSelect bold or normal font. The character weight for axes text. The x-, y-, andz-axis text labels do not display in bold until you manually reset them (by2-24

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

Saved successfully!

Ooh no, something went wrong!