|
"Jeho Shephat" wrote:
> What is the command to save my matlab figure with a
> transparent(instead of white) background? Is this even possible?
Set the 'color' property of the figure (and axes if you want) to 'none', then export the figure to the desired format using export_fig:
http://www.mathworks.com/matlabcentral/fileexchange/23629
A transparent background can be reproduced in pdf, eps and png formats.
Transparent patch objects and images are only correctly rendered when exporting to bitmap formats (as the painters algorithm used for generating vector format files does not support semi-transparent objects), and the only bitmap format to support transparency in the output image is png, i.e. exporting to png is the only way to maintain the transparency of objects in the output (when using export_fig), should you want this.
|