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

1,083 次查看(过去 30 天)
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.

采纳的回答

MathWorks Support Team
编辑:MathWorks Support Team 2024-5-21
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Printing and Saving 的更多信息

产品


版本

R2006a

Community Treasure Hunt

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

Start Hunting!

Translated by