I use the following code to create three patch objects using Z-buffer rendering.
p1 = patch([-1 1 1 -1],[-1 -1 1 1],[0 0 0 0])p2 = patch([-.75 .75 .75 -.75],[-.75 -.75 .75 .75],[0 0 0 0],'red')p3 = patch([-.7 .7 .7 -.7],[-.7 -.7 .7 .7],[0 0 0 0],'blue')set(gcf,'Renderer','ZBuffer')
When I use the rotate tool to rotate the plot, I expect the smallest patch (blue) to stay on top. However, the colors of the patches flicker. It does not look like the smallest patch always stays on top.
Best Answer