Following is the sequence of commands to apply graphic patches in MATLAB.
Open the LOCAL MACHINE window.
Type the command xhost + ashland.
Add the following code sequence before the plot command.
Figure;
Set(gcf,'renderer','zbuffer');
[s,w] = unix('echo $DISPLAY');
Set(gcf, 'XDisplay',w);