MATLAB: Is the function ZLABEL unable to display the axis label in MATLAB 7.4 (R2007a)

MATLAB

I use the following code to create a ZLABEL, but nothing is displayed:
surf(peaks)
set(gcf,'renderer','zbuffer')
zlabel('z','FontName', 'MS Sans Serif')

Best Answer

There is a limitation with bitmap fonts in connection with the ZBUFFER and OPENGL renderer. Bitmap fonts can not be rotated.
As a workaround you may select another font or the OPENGL renderer:
set(gcf,'renderer','painters')
zlabel('z','FontName', 'Helvetica')