23.12.2012 Views

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

MATLAB Function Reference Volume 1: A - E - Bad Request

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 Properties<br />

FontName A name such as Courier or the string FixedWidth<br />

Font family name. The font family name specifying the font to use for axes<br />

labels. To display and print properly, FontName must be a font that your system<br />

supports. Note that the x-, y-, and z-axis labels do not display in a new font until<br />

you manually reset them (by setting the XLabel, YLabel, and ZLabel properties<br />

or by using the xlabel, ylabel,orzlabel command). Tick mark labels change<br />

immediately.<br />

Specifying a Fixed-Width Font<br />

If you want an axes to use a fixed-width font that looks good in any locale, you<br />

should set FontName to the string FixedWidth:<br />

set(axes_handle,'FontName','FixedWidth')<br />

This eliminates the need to hardcode the name of a fixed-width font, which may<br />

not display text properly on systems that do not use ASCII character encoding<br />

(such as in Japan where multibyte character sets are used). A properly written<br />

<strong>MATLAB</strong> application that needs to use a fixed-width font should set FontName<br />

to FixedWidth (note that this string is case sensitive) and rely on<br />

FixedWidthFontName to be set correctly in the end-user’s environment.<br />

End users can adapt a <strong>MATLAB</strong> application to different locales or personal<br />

environments by setting the root FixedWidthFontName property to the<br />

appropriate value for that locale from startup.m.<br />

Note that setting the root FixedWidthFontName property causes an immediate<br />

update of the display to use the new font.<br />

FontSize Font size specified in FontUnits<br />

Font size. An integer specifying the font size to use for axes labels and titles, in<br />

units determined by the FontUnits property. The default point size is 12. The<br />

x-, y-, and z-axis text labels do not display in a new font size until you manually<br />

reset them (by setting the XLabel, YLabel,orZLabel properties or by using the<br />

xlabel, ylabel, or zlabel command). Tick mark labels change immediately.<br />

FontUnits {points} | normalized | inches |<br />

centimeters | pixels<br />

Units used to interpret the FontSize property. When set to normalized,<br />

<strong>MATLAB</strong> interprets the value of FontSize as a fraction of the height of the<br />

axes. For example, a normalized FontSize of 0.1 sets the text characters to a<br />

2-105

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

Saved successfully!

Ooh no, something went wrong!