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.

Table 1-3: Device Drivers Supported by the Graphics Library
Device
Description
-dbitmap
Windows Bitmap (BMP) format (Windows only).
-deps
Level 1 black and white Encapsulated PostScript (EPS).
-depsc
Level 1 color Encapsulated PostScript (EPS).
-deps2
Level 2 black and white Encapsulated PostScript (EPS).
-depsc2
Level 2 color Encapsulated PostScript (EPS).
-dhpgl
HPGL compatible with HP 7475A plotter.
-dill
Adobe Illustrator 88 compatible illustration file.
-dps
Level 1 black and white PostScript.
-dpsc
Level 1 color PostScript.
-dps2
Level 2 black and white PostScript.
-dpsc2
Level 2 color PostScript.
-dwin
Windows black and white printing services. (Windows only)
-dwinc
Windows color printing services. (Windows only)

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.

Table 1-4: print Command Line Options Supported by the Graphics Library
Option
Description
-adobecset
Use PostScript default character set encoding.
-append
Append to existing PostScript file without overwriting.
-cmyk
Use CMYK colors in PostScript instead of RGB.
-noui
Suppress printing of user interface controls.
-rnumber
Specify resolution in dots per inch (dpi).
-painters
Render using Painter's algorithm.
-zbuffer
Render using Z-buffer.

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