X軸を共有する何個かの図を作りたい
Aslak Grinstedさん作成のsamexaxis.mが便利.
Aslak Grinstedさん作成の[[samexaxis.m:http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=7169&objectType=FILE]]が便利.
* Install [#b89d932c]
- [[詳しくはMATLAB Central File Exchange:http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=7169&objectType=FILE]]
- 同じ作者の作ったparseArgs.mが必要なので,[[savefigure:http://www.mathworks.com/matlabcentral/fileexchange/loadFile.do?objectId=6854&objectType=File]]から入手.
&ref(samexaxis.jpg,,50%);
* Example [#u9c7daaa]
subplot(3,1,1);
plot(randn(100,1),randn(100,1),'x');
ylabel('QF')
subplot(3,1,2);
plot(randn(100,1),randn(100,1)*10,'x');
ylabel('HT');
subplot(3,1,3);
plot(randn(100,1),randn(100,1)*33,'x');
ylabel('DV');
samexaxis('abc','xmt','on','ytac','join','yld',1)