Back to Data Visualization
axis
Set axis limits and scaling
Syntax
axis([xmin xmax ymin ymax])
Description
Sets the limits for both x and y axes simultaneously.
Parameters
| Name | Description |
|---|---|
| limits | 4-element vector [xmin xmax ymin ymax] |
Returns
null
Examples
Try It
>> plot([1 2 3]); axis([0 4 0 4])