Is it possible to just set the lower limit of the y-axis?
Show older comments
I just want to set the lower limit of the y-axis to zero.
But with 'ylim', I have to also set the upper limit, which I do not know what value is appropriate.
What should I do?
2 Comments
Mathieu NOE
on 19 Apr 2024
you could set the upper limit to the max of the displayed data (so compute the max and use it in the ylim arguments)
Star Strider
on 19 Apr 2024
This should work —
ylim([0 max(ylim)])
.
Accepted Answer
More Answers (0)
Categories
Find more on Creating, Deleting, and Querying Graphics Objects 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!