figure内のsubplotで共通のxticks,xticklabels,xlimを使う方法
이전 댓글 표시
現在は各subplotに対し
xlabelname='namae'
subplot(1) xticklabels(xlabelname)
subplot(2) xticklabels(xlabelname) ...
と続けているのですが、figure内のサブプロットにすべて共通のxticks他を当てはめるので、もっと簡略化したいです。
setやXTicksなどを使ってできると思うのですが...?
채택된 답변
추가 답변 (1개)
madhan ravi
2018년 10월 30일
편집: madhan ravi
2018년 10월 30일
h = subplot(3,3,1);
h1 = subplot(3,3,1);
xlabel(h,'x');
ylabel(h,'y');
xlabel(h,'t');
ylabel(h,'y');
set(h,'XTickLabel',{'a','b','c'});
set(h1,'XTickLabel',{'g','h','j'});
댓글 수: 1
madhan ravi
2018년 10월 30일
The above shows an example to change xticklabels for different subplots using handles
카테고리
도움말 센터 및 File Exchange에서 Subplots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!