| Contents | Index |
The plot attributes allow to specify the fonts AxesTitleFont, FooterFont, HeaderFont, LegendFont, TextFont, TicksLabelFont, and TitleFont. Each such font is specified by a MuPAD® list of the following form:
[<family>, <size>, <Bold>, <Italic>, <color>, <alignment>].
The parameters are:
|
family |
– |
the font family name: a string. The available font families depend on the fonts that are installed on your machine. For example, typical font families available on Microsoft® Windows® systems are "Times New Roman" (of type ‘serif’), "Arial" (of type ‘sans-serif’), or "Courier New" (of type ‘monospace’). To find out which fonts are available on your machine, open the menu ‘Format,’ submenu ‘Font’ in your MuPAD notebook. The first column in the font dialog provides the names of the font families that you may specify. You may also specify one the three generic family names "serif", "sans-serif", or "monospace", and the system will automatically choose one of the available font families of the specified type for you. |
|
size |
– |
the size of the font in integral points: a positive integer. |
|
Bold |
– |
if specified, the font is bold |
|
Italic |
– |
if specified, the font is italic. |
|
color |
– |
an RGB color value: a list of 3 numerical values between 0 and 1 |
|
alignment |
– |
text alignment in case of new-lines: one of the flags Left, Center, or Right. |
In the following example, we specify the font for the canvas header:
plot(plot::Function2d(sin(x), x = 0..2*PI),
Header = "The sine function",
HeaderFont = ["monospace", 14, Bold]):

All font parameters are optional; some default values are chosen for entries that are not specified. For example, if you do not care about the footer font family for your plot, but you insist on a specific font size, you may specify an 18 pt font as follows:
plot(plot::Function2d(sin(x), x = 0..2*PI),
Footer = "The sine function", FooterFont = [18]):


Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |