Split Axes for cyclic process plotting
Mostrar comentarios más antiguos
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
Respuestas (1)
Wayne King
el 15 de Nov. de 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)
Categorías
Más información sobre Line Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!