Open delyle opened 8 years ago
It works ok on my Windows machine, so I assume that it could either be something specific to Mac, or perhaps to the figure's renderer - try to set the figure and/or export_fig to other renderers and see if this helps.
The painters renderer works well, it's opengl that causes the issue.
Please try to run print('test.png','-dpng')
and see whether you see the same problem. In this case this would prove that this is an internal Matlab bug on Mac, and you should report it to MathWorks. Please report here what you find.
Running print('test.png','-dpng')
gives the correct output, so I don't think it's an internal Matlab bug.
A minimal working example is below:
The result is as follows:
The x and y labels are shifted, when they should remain in the middle of their respective axes.
I am using MATLAB 2015b for Mac and the most recent version of
export_fig
(as of March 30, 2016).