
220 Accelerating MATLAB
®
Performance
line to MATLAB’s java.opts le, which instructs Java to use the Quartz version of
Graphics2D when MATLAB starts:
-Dapple.awt.graphics.UseQuartz = true
Notes:
⚬
MATLAB needs to be restarted whenever java.opts is updated
⚬
Figure drawing may become slower using Quartz. To disable the workaround
during extensive gure drawing, temporarily rename java.opt and restart
MATLAB (restart again when you rename back).
⚬
Some users nd that Quartz rendering causes odd shifting behavior with
variable-width fonts. A workaround for this is to use a monospaced font such
as Monospaced, Andale Mono, or Courier New.
Some additiona ...