Change minimum y-limits on a plot?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
cocopuffs
am 14 Aug. 2014
Kommentiert: cocopuffs
am 14 Aug. 2014
Hi guys.
I have a grpah that for some reason starts at .5 on the y axis instead of 0. I want to change the minimum limit on the y axis to 0. I have tried using ylim but for that I also need to input the max limit. However I ONLY want to change the minimum y-limit as the maximum limit is already correct.
Thank you in advance!
0 Kommentare
Akzeptierte Antwort
Joakim Magnusson
am 14 Aug. 2014
Bearbeitet: Joakim Magnusson
am 14 Aug. 2014
Maybe you are looking for this?
yLim = get(gca,'YLim');
set(gca,'YLim', [0 yLim(2)]);
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!