Split Axes for cyclic process plotting
3 views (last 30 days)
Show older comments
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
0 Comments
Answers (1)
Wayne King
on 15 Nov 2011
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)
0 Comments
See Also
Categories
Find more on Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!