HPGL Compatible Plotters (-dhpgl)
MATLAB provides HPGL support for the HP 7475A plotter and other plotters that are fully compatible with the HP 7475A. To specify the HPGL format, use the -dhpgl option.
If you specify this option and do not provide a filename, MATLAB sends the output directly to the plotter. If you provide a filename, the print command creates a file called filename.hgl for later output to a plotter. HPGL files can also be imported into documents of other applications, such as Microsoft Word.
When plotting a figure, it is especially important that the background color be white, because this driver does not do background fills. If the background color is black, make sure the value of the InvertHardCopy property is on. When this property is on, MATLAB inverts the colors of the figure for printing, so that black backgrounds print as white.
Color Selection
The HP 7475A plotter supports six pens, none of which can be white. If MATLAB tries to draw in white while rendering in HPGL mode, the driver ignores all drawing commands until a different color is chosen.
Pen 1 is assumed to be black, and is used for drawing axes. The remaining colors are the first five colors in the ColorOrder property of the current axes object. If ColorOrder specifies fewer than five colors, the unspecified pens are not used.
For Simulink systems, which ordinarily use a maximum of eight colors, the six pens available on the plotter are assumed to be:
If you attempt to draw a MATLAB object containing a color that is not a known pen color, the driver chooses the nearest approximation to the unlisted color.
Limitations
The HPGL driver has these limitations:
[ Previous | Help Desk | Next ]