When I use OpenGL renderer to create patches in MATLAB 7.7 (R2008b) the data is plotted incorrectly, wheras when I use another renderer such as Painter or ZBuffer, the data is accurate.
Reproduction Code:
This gives the incorrect result:
figureset(gcf,'renderer','opengl');p2 = patch([500000.99 500001 500001 500000.99],[0.8 0.8 1.2 1.2],'r');xlim([500000.99-.05 500001+.05])
This gives the correct result:
figureset(gcf,'renderer','painters');p2 = patch([500000.99 500001 500001 500000.99],[0.8 0.8 1.2 1.2],'r');xlim([500000.99-.05 500001+.05])
Best Answer