MATLAB: Is the upper axis grid not visible after exporting to .eps image

3d3dplots

I export the 3d plots to .eps by using following code. But the upper axis grid is not visible after exporting to .eps. Why?
Please find the following picture. (red line on the top)
set(gcf,'renderer','Painters');
set(gcf, 'PaperPositionMode', 'auto');
print -depsc2 ex1error.eps;
print(gcf, '-dpdf', '-r600', ZZZ)

Best Answer

Did you enable the box?
set(gca, 'Box', 'on')