MATLAB Answers

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

160 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.

  0 Comments

Sign in to comment.

More Answers (1)

John
John on 13 Dec 2018
I just copied from Matlab (2018a) to Powerpoint 2013, and was able to obtain transparent background by using the set transparent color, ref https://support.office.com/en-us/article/make-a-picture-transparent-ce96ac80-5afc-436c-ae3f-0c78009bf704. Setting the background to transparent in Matlab options provided a white background when copied.

  0 Comments

Sign in to comment.

Sign in to answer this question.

Tags

Products