Sunday, April 19, 2015

Resolving Low-Level Graphics Issues

Resolving Low-Level Graphics Issues

MATLAB® can encounter low-level graphics issues when creating graphics on your system. For example, bar edges might be missing from bar charts or stems might be missing from stem plots. You can encounter these issues while creating 2-D or 3-D charts, using a Simulink® model that contains Scopes, or using UIs from a MathWorks® toolbox. These issues are often due to older graphics hardware or outdated graphics drivers. To resolve them, try the options described here.


Use Software OpenGL Instead (Windows and Linux Only)

You can work around many graphics issues by using the software version of OpenGL® built-into MATLAB instead of using your graphics hardware. In some cases, MATLAB automatically switches to software OpenGL, for example, if it detects known issues such as outdated drivers or graphics virtualization. Software OpenGL does not support some graphics features, such as graphics smoothing.
To determine if you are using hardware or software OpenGL, type opengl info. The returned information contains the line Software: 'false' if you are using hardware OpenGL or Software: 'true' if you are using software OpenGL.
To switch from hardware to software OpenGL, start MATLAB from the command prompt on your system using this command: (Start->all program-> accessories -> Command Prompt)
matlab -softwareopengl
To set your preferences so that MATLAB always starts with software OpenGL on this computer, execute this command at the MATLAB command line:
opengl('save','software')

No comments: