Azzera filtri
Azzera filtri

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

1.290 visualizzazioni (ultimi 30 giorni)
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.

Risposta accettata

MathWorks Support Team
MathWorks Support Team il 21 Mag 2024
Modificato: MathWorks Support Team il 21 Mag 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

Più risposte (0)

Categorie

Scopri di più su Printing and Saving in Help Center e File Exchange

Prodotti


Release

R2006a

Community Treasure Hunt

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

Start Hunting!

Translated by