axisLimitReset(varargin)
This function resets the input figure so that all subplots have the same y-axis limits. If new axis limits are given, the function uses them; otherwise, it determines the new limits based on the current subplots. This function can be used for a single plot as well, but is primarily designed to homogenize the output of subplots. It also works well when you want to plot boxplots from different datasets side-by-side but don't want to map a category variable to them.
Cite As
Greg Bass (2024). axisLimitReset(varargin) (https://www.mathworks.com/matlabcentral/fileexchange/52822-axislimitreset-varargin), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance > Combine Multiple Plots > Subplots >
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.