HP IBASIC Supplement 7-17
Graphics and Display Techniques
SCPI Graphics Commands
Table 7-2 SCPI Graphics Commands
SCPI COMMAND FORM DESCRIPTION
DISPlay:WINDow[1|2|10]:GRAPhics
:CIRCle <radius>
command
only
Draws a circle of the specified Y-axis
radius centered at the current pen
location — radius is in pixels.
DISPlay:WINDow[1|2|10]:GRAPhics
:CLEar
command
only
Clears the user graphics and graphics
buffer for the specified window.
DISPlay:WINDow[1|2|10]:GRAPhics
:COLor <num>
NR1 Sets the color of the user graphics pen
— choose from 0 for erase, 1 for bright,
and 2 for dim.
DISPlay:WINDow[1|2|10]:GRAPhics
[:DRAW] <x>,<y>
command
only
Draws a line from the current pen
position to the specified new pen
position — x and y are the new
absolute X and Y coordinates in pixels.
DISPlay:WINDow[1|2|10]:GRAPhics
:LABel <string>
command
only
Draws a label with the lower left
corner at the current pen location.
DISPlay:WINDow[1|2|10]:GRAPhics
:LABel:FONT <font>
CHAR Selects the user graphics label font —
choose from
SMALl|HSMall|NORMal|HNORmal
|BOLD|HBOLd|SLANt|HSLant.
DISPlay:WINDow[1|2|10]:GRAPhics
:MOVE <x>,<y>
NR1,NR1 Moves the pen to the specified new pen
position — x and y are the new
absolute X and Y coordinates in pixels.
DISPlay:WINDow[1|2|10]:GRAPhics
:RECTangle <xsize>,<ysize>
command
only
Draws a rectangle of the specified size
with lower left corner at the current
pen position — xsize and ysize are
the width and height in pixels.
DISPlay:WINDow[1|2|10]:GRAPhics
:SCALe
<xmin>,<xmax>,<ymin>,<ymax>
command
only
Specifies a new coordinate system for
the specified window. Subsequent
graphics commands will use these new
coordinates. This command may be
useful for converting older programs to
work on your analyzer. (See “Graphics
Exceptions” on page 7-14.)