The HP-GL Device

Device Keywords Accepted by the HP-GL Device:

CLOSE_FILE, EJECT, FILENAME, INCHES, LANDSCAPE, OUTPUT, PLOTTER_ON_OFF, POLYFILL, PORTRAIT, SET_CHARACTER_SIZE, XOFFSET, XON_XOFF, XSIZE, YOFFSET, YSIZE

HP-GL (Hewlett-Packard Graphics Language) is a plotter control language used to produce graphics on a wide family of pen plotters. To use HP-GL as the current graphics device, issue the IDL command:

SET_PLOT,'HP' 

This causes IDL to use HP-GL for producing graphical output. Once the HP-GL driver is enabled via SET_PLOT, the DEVICE procedure is used to control its actions, as described below. The default settings for the HP-GL driver are shown in the following table. Use the statement:

HELP, /DEVICE 

to view the current state of the HP-GL driver.

Table A-11: Default HP-GL Driver Settings

Feature
Value

File

idl.hp

Orientation

Portrait

Erase

No action

Polygon filling

Software

Turn plotter logically on/off

No

Specify xon/xoff flow control

Yes

Horizontal offset

3/4 in.

Vertical offset

5 in.

Width

7 in.

Height

5 in.

Abilities And Limitations

IDL is able to produce a wide variety of graphical output using HP-GL. The following is a list of what is and is not supported:

HP-GL Linestyles

The LINESTYLE graphics keyword allows specifying any of 6 linestyles. HP-GL does not support all of these linestyles, and styles 3 and 4 differ from the definition in Graphics Keywords. The following table summarizes the differences:

Table A-12: Linestyles for the HP-GL Device 

Index
Normal Line Style
HP-GL Line Style
0

Solid

same

1

Dotted

same

2

Dashed

same

3

Dash Dot

Relative size of dash and dot are different.

4

Dash Dot Dot Dot

Dash Dot Dot

5

Long Dashes

same