Although the subregion capability was motivated for the purpose of denoting engineering limits, they can in fact be used for whatever purpose you want. Subregions apply to all subsequent 2-D plots (but not 3-D plots).
Currently, subregions are limited to rectangular regions. This will be upgraded to polygonal regions in a future implementation.
The SUBREGION command is used to turn subregions on or off and up to 10 subregions can be specified. In most cases where subregions are defined, only a single subregion is used.
where <ON> specifies that the subregion is active and OFF specifies that it is inactive. Up to 10 subregion switches can be set.
In most cases, only a single subregion is specified.
SUBREGION ON ON ON
It is this order of plotting that distinguishes the subregion from simply using a BOX <id> command to plot rectangular regions on the screen.
NACCEPT = number of plot points inside the subregion.
The REGION FILL and REGION COLOR determine the attributes of the interior of the rectangle. The two most common choices are to leave it blank or to fill it with some type of light gray scale color. The attributes of the rectangle border are set with the REGION BORDER LINE and REGION BORDER COLOR commands. The standard line types (SOLID, BLANK, DASH, DOTTED) are supported. If you have more than one subregion defined, you should specify multiple settings on the above commands. For example,
REGION FILL ON ON ON
read simon1.dat y1 y2 x1 x2 x3 x4 x5 block runseq
subregion xlimits 0.35 0.42
subregion ylimits 2000 3000
region fill on
region border line dash
region color g90
plot y1 vs x1
move 20 80
text n = ^ntotal
move 20 75
text accept = ^naccept
move 20 70
text reject = ^nreject