How can I change the background color from gray to white when copying a figure to PowerPoint?

15 views (last 30 days)
On Windows, there is a "Copy Options" panel in the File->Preferences dialog which allows the user to set the background color of the copied figure to white. On Macintosh, this preference panel is not available, so all figures are copied with gray background. I would like to change the background color of my figure to white before copying it.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 4 Sep 2024
Edited: MathWorks Support Team on 21 May 2024
Starting in MATLAB R2020a, you can use the "exportgraphics" function to save the contents of a figure as an image or vector graphics file. Alternatively, you can use the "copygraphics" function to save the contents of a figure to your clipboard and then paste the content into another application such as Power Point. 
Both functions have a "BackgroundColor" name-value argument. To copy the figure content using a transparent background, set the "BackgroundColor" argument to "none". The background of your slide will become the background for the graphic.
To learn about the different ways you can copy or export graphics from MATLAB, see the following documentation:
Compare Ways to Export Graphics from Figures
https://www.mathworks.com/help/matlab/creating_plots/compare-ways-to-export-save-graphics-plots-from-figures.html

More Answers (0)

Categories

Find more on Printing and Saving in Help Center and File Exchange

Products


Release

R2006a

Community Treasure Hunt

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

Start Hunting!