MATLAB: Does an invisible figure become visible when I save a bitmap image using the PRINT function in MATLAB

bitmapbmpdbitmapMATLABprint

I have a figure whose 'Visible' property is set to 'Off'. When I save it to a file using the following command, it becomes visible again.
print -dbitmap foo.bmp
I want to save the figure as a bitmap file, but have it remain invisible in MATLAB.

Best Answer

We have verified that there is a bug in MATLAB 7.0 (R14) related to the use of the -dbitmap flag with the PRINT function.
To work around this issue, you can use the -dbmp flag which also saves in the bitmap format, as in the following example:
print -dbmp foo.bmp