Stop 3-D plot crashing on Matlab over VNC

Matlab >= R2014b

Matlab >= R2014b auto-select software OpenGL when using X-Forwarding. You can get much faster performance for rotating and viewing 3-D figures by in Matlab:

set(gcf,'renderermode','manual','renderer','zbuffer')

while the default is the much slower but less prone to crash:

set(gcf,'renderermode','manual','renderer','painters')

Matlab <= R2014a

Restart Matlab, and before doing anything type:

opengl('neverselect')

Then at plotting time:

figure 
set(gcf,'renderermode','manual','renderer','painters') slice(..)

Categories: ,

Updated: