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 PropertiesXTickLabel, YTickLabel, ZTickLabelstringTick labels. A matrix of strings to use as labels for tick marks along therespective axis. These labels replace the numeric labels generated by<strong>MATLAB</strong>. If you do not specify enough text labels for all the tick marks,<strong>MATLAB</strong> uses all of the labels specified, then reuses the specified labels.For example, the statement,set(gca,'XTickLabel',{'One';'Two';'Three';'Four'})labels the first four tick marks on the x-axis and then reuses the labels until allticks are labeled.Labels can be specified as cell arrays of strings, padded string matrices, stringvectors separated by vertical slash characters, or as numeric vectors (whereeach number is implicitly converted to the equivalent string using num2str). Allof the following are equivalent:set(gca,'XTickLabel',{'1';'10';'100'})set(gca,'XTickLabel','1|10|100')set(gca,'XTickLabel',[1;10;100])set(gca,'XTickLabel',['1 ';'10 ';'100'])Note that tick labels do not interpret TeX character sequences (however, theTitle, XLabel, YLabel, and ZLabel properties do).XTickMode, YTickMode, ZTickMode{auto} | manual<strong>MATLAB</strong> or user controlled tick spacing. The axis tick modes determinewhether <strong>MATLAB</strong> calculates the tick mark spacing based on the range of datafor the respective axis (auto mode) or uses the values explicitly set for any ofthe XTick, YTick, and ZTick properties (manual mode). Setting values for theXTick, YTick, or ZTick properties sets the respective axis tick mode to manual.XTickLabelMode, YTickLabelMode, ZTickLabelMode{auto} | manual<strong>MATLAB</strong> or user determined tick labels. The axis tick mark labeling modedetermines whether <strong>MATLAB</strong> uses numeric tick mark labels that span therange of the plotted data (auto mode) or uses the tick mark labels specified withthe XTickLabel, YTickLabel, or ZTickLabel property (manual mode). Settingvalues for the XTickLabel, YTickLabel, or ZTickLabel property sets therespective axis tick label mode to manual.2-34

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

Saved successfully!

Ooh no, something went wrong!