Filter löschen
Filter löschen

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

1.399 Ansichten (letzte 30 Tage)
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.

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 21 Mai 2024 um 0:00
Bearbeitet: MathWorks Support Team am 21 Mai 2024 um 19:10
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

Weitere Antworten (0)

Kategorien

Mehr zu Printing and Saving finden Sie in Help Center und File Exchange

Produkte


Version

R2006a

Community Treasure Hunt

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

Start Hunting!

Translated by