MATLAB: Does the renderer of a figure get automatically changed to OpenGL when I plot bar graphs with more than 600 bars in MATLAB 7.3 (R2006b)

MATLAB

When I plot bar graphs with more than 600 bars, the renderer is automatically changed to OpenGL, as shown in the following code:
figure
bar(rand(1,600))
drawnow
get(gcf,'renderer')
bar(rand(1,601))
drawnow
get(gcf,'renderer')

Best Answer

MATLAB automatically selects the OpenGL renderer when it determines it to be the best renderer equipped to display an image. To select a different renderer, reset the desired renderer after plotting the bar graphs.