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.

Axes PropertiesXLabel, YLabel, ZLabel handle of text objectAxis labels. The handle of the text object used to label the x, y, or z-axis,respectively. To assign values to any of these properties, you must obtain thehandle to the text string you want to use as a label. This statement defines atext object and assigns its handle to the XLabel property:set(gca,'Xlabel',text('String','axis label'))<strong>MATLAB</strong> places the string 'axis label' appropriately for an x-axis label. Anytext object whose handle you specify as an XLabel, YLabel, or ZLabel propertyis moved to the appropriate location for the respective label.Alternatively, you can use the xlabel, ylabel, and zlabel functions, whichgenerally provide a simpler means to label axis lines.XLim, YLim, ZLim[minimum maximum]Axis limits. A two-element vector specifying the minimum and maximumvalues of the respective axis.Changing these properties affects the scale of the x-, y-, or z-dimension as wellas the placement of labels and tick marks on the axis. The default values forthese properties are [0 1].XLimMode, YLimMode, ZLimMode{auto} | manual<strong>MATLAB</strong> or user-controlled limits. The axis limits mode determines whether<strong>MATLAB</strong> calculates axis limits based on the data plotted (i.e., the XData,YData, or ZData of the axes children) or uses the values explicitly set with theXLim, YLim, or ZLim property, in which case, the respective limits mode is set tomanual.XScale, YScale, ZScale{linear} | logAxis scaling. Linear or logarithmic scaling for the respective axis. See alsologlog, semilogx, and semilogy.XTick, YTick, ZTick vector of data values locating tick marksTick spacing. A vector of x-, y-, or z-data values that determine the location oftick marks along the respective axis. If you do not want tick marks displayed,set the respective property to the empty vector, [ ]. These vectors must containmonotonically increasing values.2-33

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

Saved successfully!

Ooh no, something went wrong!