Split Axes for cyclic process plotting
Mostra commenti meno recenti
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
Risposte (1)
Wayne King
il 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)
Categorie
Scopri di più su Line Plots in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!