Removing extra white space on figure

7 views (last 30 days)
Is there a way to get rid of the extra space below the spectrum so that it starts at 0? This seems to only occur for some of the figures I plot.

Accepted Answer

Francesco Pignatelli
Francesco Pignatelli on 26 Jul 2022
When plotting, you can set after the plot command, the following:
ylim([0 valuethatyouwant])
  5 Comments
Elham
Elham on 26 Jul 2022
Just changed the axes properties and it seems to be working fine now, thank you @Francesco Pignatelli !!

Sign in to comment.

More Answers (0)

Categories

Find more on Function Creation in Help Center and File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!