How do I zoom on multiple axes at once in MATLAB 6.0 (R12)?
3 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2010 年 1 月 20 日
編集済み: MathWorks Support Team
2023 年 4 月 14 日
I am aware of the function PLOTYY for creating multiple y axes on a figure. However, the ZOOM function only zooms on one axis.
I would like to zoom into two axis at the same time and zoom factor.
採用された回答
MathWorks Support Team
2023 年 4 月 13 日
編集済み: MathWorks Support Team
2023 年 4 月 14 日
This enhancement has been incorporated in MATLAB 7.5 (R2007b).
To work around this issue in previous MATLAB releases, if you are using MATLAB 7.0 (R14) or later, you can use SUBPLOT instead of PLOTYY with LINKAXES to synchronize the limits of multiple axes. An example code of this method is shown below:
ax(1) = subplot(2,2,1);
plot(rand(1,10)*10,'Parent',ax(1));
ax(2) = subplot(2,2,2);
plot(rand(1,10)*100,'Parent',ax(2));
linkaxes(ax,'x');
For more information, please see the documentation for LINKAXES :
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Two y-axis についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!