/
MATLAB Exporting Transparent Patches

MATLAB Exporting Transparent Patches

The usual copy/paste to CorelDraw and export_fig do not save transparency in patches. Instead, print to pdf and import the pdf:

Option 1

>>print(gcf, '-dpdf', 'D:\temp\sao2.eps'); 

Import (drag) "sao2.eps") in CorelDraw, and all is good.

Option 2

  • Export figure to "svg" format with plot2svg from File Exchange*
    • CSPM includes this under ...\CSPM\plot2svg
>> addpath c:\matlab\spm12\toolbox\CSPM\plot2svg
    • Click on figure (to make it "current figure")
    • Save as SVG file in MATLAB's current folder
>> plot2svg('filename.svg')
  • Open in Inskape
    • Note: on my (Paul's) computer, Inskape opens off the screen. To retrieve:
      • Select on toolbar
      • Alt^ Space
      • Click any arrow key
      • Move the window will be moving with the mouse, and you can drag it back to a screen
  • Upgroup and delete un-needed content
  • Save as eps
  • import into CorelDraw

* MATLAB 20016a: need to fix bug in plot2svg

Copying and pasting does not work.


Related content

Plotting
More like this
Software for CSPM
Software for CSPM
More like this
Updates 2022
Updates 2022
More like this
ASL troubleshooting
ASL troubleshooting
More like this
fMRI Copy Images
fMRI Copy Images
More like this
CorelDraw - More on color issues
CorelDraw - More on color issues
More like this