HTBasic Help
×
Menu
Index

PLOTTER IS Statement

 
The PLOTTER IS statement specifies the graphics output device or file. The default graphics output target is the CRT. Executing a PLOTTER IS statement directs all subsequent graphics output to the specified device or file. For example:
PLOTTER IS CRT,"INTERNAL";COLOR MAP
The plotter specifier string specifies the graphics device driver. To re-select the internal CRT graphics display specify "INTERNAL".
The "HPGL" plotter specifier string specifies the HP graphics language. This specifier can be used in conjunction with a plotter or disk file. If a file is specified, you must also specify the physical device (hard-clip) limits. If a device is specified, the device must be able to return the physical device limits when initialized. For example:
PLOTTER IS 705,"HPGL"
specifies an HPGL plotter connected to the IEEE-488 bus on address five. The plotter can be connected to the computer over the IEEE-488 bus or the serial interface.
The hard-clip limits of the plotter may be specified. If they are not and output is going to a file, they default to ±392.75 mm in the x axis and ±251.5 mm in the y axis. If hard-clip limits are not specified and output is going to a device, HTBasic asks the device to return the p-points. The hard-clip units are specified using plotter units equal to 0.025 millimeters. The file is positioned to the beginning and is closed when another PLOTTER IS, GINIT, or SCRATCH A statement is executed. For example:
PLOTTER IS "Pictfile","HPGL",5,250,7,136
The file can be later sent to a plotting device or imported into a word processor or a desktop publishing package that supports the HP graphics language. To reset your graphic output device to the internal display execute the command:
PLOTTER IS CRT,"INTERNAL"