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') Related SolutionsMATLAB: Are the text labels cut off when I rotate and resize a surface plot in MATLAB 7.7 (R2008b) The ability to automatically preserve the text labels while rotating and resizing a figure is not available in MATLAB.To work around this issue, you can adjust the position of the axes using the 'Position' property so the text labels fit inside the figure.p = get(gca,'Position');set(gca,'Position',[p(1) p(2)+0.1 p(3)-0.1 p(4)-0.2]);You can also put the above code in the ResizeFcn to automate the process. You would still have to experiment with different axes positions to make sure that the text labels fit inside the figure. MATLAB: Are UIPANELs renderered incorrectly, when using the OpenGL renderer This bug has been fixed for Release 14 SP1 (R14SP1). For previous releases, please read below for any possible workarounds:This is a bug in MATLAB 7.0 (R14), related to the calculation of the location of the background area in uipanels.As a work around, use the zbuffer or painters renderers:set(gcf,'Renderer','zbuffer')set(gcf,'Renderer','painters') Related QuestionDoes the alpha data have no effect on a surface object in MATLAB 7.4(R2007a)Does the GETFRAME function return a gray frame within MATLAB on an OS X 10.3.2 machineDo I get white line artifacts in the image when rotating a 3-D SURF plot in MATLAB 7.1 (R14SP3)Is MATLAB not displaying the SCATTER plotDoes MATLAB 7.7 (R2008b) crash when using the MESH command over an X connection
Best Answer