MATLAB C/C++ Graphics Library | ![]() ![]() |
Restrictions
The MATLAB C/C++ Graphics Library supports most MATLAB 6.0 features, including multidimensional arrays, cell arrays, and structures. However, there are some MATLAB features the graphics library does not support, including:
In addition to these restrictions, the graphics library provides limited support for certain callback coding practices.
Graphics Library Printing Support
If your application uses default print
command settings, it should require no modification. The default print
command sends the current figure to whatever printer has been set up as the default printer on the system on which your application is running. However, if your application uses print
command switches to specify device drivers and other options, be aware that the graphics library supports only a subset of these switches.
For example, the graphics library supports most of the MATLAB built-in drivers, such as the PostScript drivers, but it does not support any of the Ghostscript drivers.
Table 1-3 lists the device drivers supported by the graphics library. For more information about specifying device drivers, see the "Printing MATLAB Graphics" section in MATLAB Graphics documentation.
In addition to device drivers, the MATLAB print
command supports several other command-line options that control various aspects of the print job, such as the renderer used. Table 1-4 lists the subset of these options supported by the graphics library. For a complete list of print command options, see the "Printing MATLAB Graphics" section in MATLAB graphics documentation.
Unsupported Application Coding Practices
The graphics library does not support certain graphics M-file coding practices that are supported in the MATLAB interpreted environment. For example, MATLAB allows you to specify variable references and assignments in callback property strings. The graphics library does not support this coding practice in stand-alone graphics applications.
See Chapter 3, Troubleshooting for more information about unsupported coding practices and how to work around them.
![]() | Components of the MATLAB C/C++ Graphics Library | System Requirements | ![]() |