I wanna save figure using 'saveas' without making white-background

4 views (last 30 days)
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???

Answers (1)

Stephen23
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:
  1. Expand the image to fill the entire figure (set the axes/figure positions), then use saveas.
  2. Use imwrite to save the data array (the better choice).

Categories

Find more on 인쇄와 저장 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!