This function scales data and axis limits after data have been plotted. This may be helpful if you've plotted several data sets then decided, "the y axis labels should be in nanometers instead of meters."
Syntax
scaleax(ScaleFactor)
scaleax(axis_h,ScaleFactor)
scaleax('axis',ScaleFactor)
scaleax(axis_h,'axis',ScaleFactor)
Description
scaleax(ScaleFactor) scales the x, y, and z data of the current axes by a scalar ScaleFactor value.
scaleax(axis_h,ScaleFactor) specifies an axis handle on which to perform scaleax. If no axis handle is declared, axis_h = gca.
scaleax('axis',ScaleFactor) specifies which data to scale, where 'axis' can be 'x', 'y', 'z', or 'all'. If 'axis' is not specified, 'all' is assumed.
scaleax(axis_h,'axis',ScaleFactor) scales 'axis' data on axis_h by ScaleFactor.
Cite As
Chad Greene (2024). scaleax (https://www.mathworks.com/matlabcentral/fileexchange/48384-scaleax), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Polar Plots >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
scaleax/
scaleax/html/
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |