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!