Split Axes for cyclic process plotting
이전 댓글 표시
Im sure this has a very simple and quick answer but as of yet my searching hasnt returned anything, so im hoping the kind people on here may point me in the right direction so i at least know what to search for.
Looking to plot a pressure cycle but with a split x-axis such that the scale goes.
4 3 2 1 0 -1 -2 -3 -2 -1 0 1 2 3 4
As an example here is one of the papers that uses this method of ploting
Many thanks in advance for you help.
Tom
답변 (1개)
Wayne King
2011년 11월 15일
Hi, you can always label your axis as you wish:
x = [4 3 2 1 0 -1 -2 -3 -2 -1 0 1 2 3 4];
plot(randn(30,1));
set(gca,'xtick',1:2:30);
set(gca,'xticklabel',x)
카테고리
도움말 센터 및 File Exchange에서 Line Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!