MATLAB: Does the object disappear when I change the figure renderer to Zbuffer

changedisappearfigureMATLABrenderertext;zbuffer

When I change my figure renderer to Zbuffer, some of my objects (such as text that I have added) disappear.

Best Answer

The Zbuffer draws each pixel based on the depth (z value) of the objects that would project onto that pixel. If your object's z position is outside of the z axis limits, the object will not be rendered. Change your z axis limits to make sure all your objects are rendered by setting the Zlim property as follows:
set(gca, 'zlim', [zMin zMax]
where zMin and zMax represent the minimum and maximum Z axis limits.