How to scale the length of the x-axis/graph?
Ältere Kommentare anzeigen
Hey,
I am plotting several 2D-profiles one after another with the same Matlab-script by just changing the input files. The x-axis displays the profile meter, e.g. goes from 0m to 100m and the y-axis the depth. I want to scale the x-axis in such way that 10m in both plots are the same (e.g. if you want so 1cm).
Is that possible? So I want to use the xlim for scaling, but how?
More info:
- I save the pictures as .eps if that makes a difference...
- Matlab 2015b
Edit: I added a picture

Akzeptierte Antwort
Weitere Antworten (3)
Steven Lord
am 15 Dez. 2015
0 Stimmen
If I understand what you're trying to do, you want the two axes to have the same limits (if they're the same size, you will need to do this to keep the lengths in sync.) If so take a look at LINKAXES.
1 Kommentar
Sina
am 15 Dez. 2015
Kategorien
Mehr zu Annotations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
