Is there a simple way of having one x-axis label and title at the bottom center and top center of subplot, respectively?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hello,
Lets say I have a 3x2 subplot and want to have only one x-axis label at the bottom center of the subplot/figure, and a title at the top center of the subplot/figure to represent all six plots. Is there a simple and easy to understand way of doing this?? I am currently using,
xlabel('Date')
and the label attaches to only the last plot of the Figure. If I try using the same code for a 3x2 subplot, it will only label the bottom right plot of the subplot, not the bottom center of the entire figure. Or will I have to define an axes Ax = axes(), then a position a text() at bottom and top center of figure?
I am using 2015a btw, any help or advice would be appreciated.
댓글 수: 1
dpb
2015년 8월 4일
I've gotta' run, so can't spend the time at the moment but I'm sure there's a FEX submittal for "super" titles; not sure if somebody's done something similar for labels or not.
There is, of course, always text to place where you wish; with an odd number of subplot columns you can simply use the middle column and get centered that way.
Not sure with later versions but I was thinking that the 'Outside' options with legend would automagically scale the axes...I generally use a smaller font size than the default to cause them to not take as much space is another "trick"...
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!