fix_x_limits

Forces the same XLim to all axis
512.0 次下载
更新时间 2009/6/9

查看许可证

fix_x_limits fixes all axis in current figure to the maximum span found
fix_x_limits(h) fixes XLim property of all axis objects in h or all axes parented under h if figure handles to maximum span found within all axes
fix_x_limits(h,limits) fixes all to given limits: [minx maxx]

Example:
h1 = subplot(2,1,1);hist(rand(100,1));
h2 = subplot(2,1,2);hist(randn(100,1));
fix_x_limits % set the maximum limits to all axes in current figure
fix_x_limits([h1 h2],[-3 3]) % Give the limits to the axis objects
fix_x_limits(gcf,[-5 4]) % Give the limits to the figure object

引用格式

Pekka Kumpulainen (2024). fix_x_limits (https://www.mathworks.com/matlabcentral/fileexchange/24378-fix_x_limits), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2007a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Graphics Object Properties 的更多信息

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.0.0.0