- Expand the image to fill the entire figure (set the axes/figure positions), then use saveas.
- Use imwrite to save the data array (the better choice).
I wanna save figure using 'saveas' without making white-background
4 views (last 30 days)
Show older comments
Hello, I usally save image on figure using 'saveas'. But whenever I save that figure, the images are saved with white extra backgound... always,

Is there any way to save figure without that white background???
0 Comments
Answers (1)
Stephen23
on 10 Aug 2017
Edited: Stephen23
on 10 Aug 2017
As the documentation clearly states, saveas saves the figure: this includes all of the figure, which might include a title, axes, axes labels, a legend, etc., and not just what is inside the axes.
You have two main options:
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!