MATLAB Answers

Is it possible to copy a figure with transparent background color in MATLAB 7.9 (R2009b)?

134 views (last 30 days)
I would like to make the background of the figure transparent and then copy/paste it into applications such as PowerPoint.
I would also like to automate this process by writing MATLAB code.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 29 Dec 2009
The ability to copy a figure with transparent background using command line is not available in MATLAB 7.9 (R2009b).
As a workaround use the following GUI option:
  • From the figure menu select 'Edit -> Copy Options …'
  • In the Copy Options dialog box, set the Clipboard Format setting to 'Metafile (may lose information)' and set the Figure Background Color setting to 'transparent'.
  • Now, copy the figure to the clipboard by selecting the Edit menu -> Copy Figure menu item.
  • Paste the figure into PowerPoint and you should get transparent figure background.

More Answers (1)

John on 13 Dec 2018
Edited: MathWorks Support Team on 9 Jul 2021 at 8:34
I just copied from Matlab (2018a) to Powerpoint 2013, and was able to obtain transparent background by using the set transparent color, ref Setting the background to transparent in Matlab options provided a white background when copied.



Community Treasure Hunt

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

Start Hunting!