scaleax

Scale data and axis limits after plotting.
330 Downloads
Updated 7 Nov 2014

View License

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
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Polar Plots in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

scaleax/html/

Version Published Release Notes
1.0.0.0