Remember that the axes is an handle object with many properties. I would recommend setting the axes properties 'xtick'
, and 'ytick'
, to an empty array. That way, you preserve the border, and background color of the axes. Simply turning the axes off will make your lines render on top of the background figure, which may or may not be the effect you are looking for.
Example:
set(handles.axes16,'xtick',[],'ytick',[])