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.

xlim, ylim, zlimPurpose2xlim, ylim, zlimSet or query axis limitsSyntaxNote that the syntax for each of these three functions is the same; only the xlimfunction is used for simplicity. Each operates on the respective x-, y-, or z-axis.xlimxlim([xmin xmax])xlim('mode')xlim('auto')xlim('manual')xlim(axes_handle,...)Descriptionxlim with no arguments returns the respective limits of the current axes.xlim([xmin xmax]) sets the axis limits in the current axes to the specifiedvalues.xlim('mode') returns the current value of the axis limits mode, which can beeither auto (the default) or manual.xlim('auto') sets the axis limit mode to auto.xlim('manual') sets the respective axis limit mode to manual.xlim(axes_handle,...) performs the set or query on the axes identified bythe first argument, axes_handle. When you do not specify an axes handle,these functions operate on the current axes.Remarksxlim, ylim, and zlim set or query values of the axes object XLim, YLim, ZLim,and XLimMode, YLimMode, ZLimMode properties.When the axis limit modes are auto (the default), <strong>MATLAB</strong> uses limits thatspan the range of the data being displayed and are round numbers. Setting avalue for any of the limits also sets the corresponding mode to manual. Notethat high-level plotting functions like plot and surf reset both the modes andthe limits. If you set the limits on an existing graph and want to maintain theselimits while adding more graphs, use the hold command.2-590

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

Saved successfully!

Ooh no, something went wrong!