Function 'print' does not save properly in 'png' format. Title of the colorbar in a surf plot is missing (Matlab2015b on Mac OSX 10.9.5)
1 view (last 30 days)
This code creates a figure to be exported/saved:
[X,Y,Z] = peaks(25);
hf = figure;
cb = colorbar
On screen you should see this figure:
When the figure is saved using the command print, the title of the colorbar is missing. In fact, the following code
creates the figure 'MyFigure.png' that looks like:
The problem is experienced on:
- Mac OSX 10.9.5
Any ideas, suggestions or solutions are welcome.
The same code on a machine with Windows 10 works.
Maybe it is a bug only for Mac OS X systems.