MATLAB Answers

Automatically remove white space from figure

796 views (last 30 days)
RuiQi
RuiQi on 16 Jul 2017
Answered: Pankaj on 7 Oct 2018
How do I remove the white space from the figures ? I don't want to have to save the image then manually crop it.
Instead of Matlab's dumb figure it would be something like
smart_figure('NoWhiteSpace');
plot(..);
or
figure;
plot(..);
smart_clean('NoWhiteSpace');
Is there such a function ?

  0 Comments

Sign in to comment.

Answers (2)


Image Analyst
Image Analyst on 16 Jul 2017
Attach images showing what you have and what you want.
You can change the amount of gray padding about your axes by setting the Position property of the axes.

  0 Comments

Sign in to comment.

Tags

Community Treasure Hunt

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

Start Hunting!