The Region command allows you to highlight a region of space within a graph. This can be useful for highlighting aspects of a graph, such as drawing shapes around a group of points.
The shapes you add to a graph or not just overlaid on the graph, but are located in x-y coordinates. Thus, if you change the size or aspect ratio of your graph, the same region will be highlighted, but the shape itself may look different.
Click and Drag
You can type in the extent of the region using entry boxes (see below) or interactively by clicking and dragging on an edge or corner to resize.
Click inside the region to drag it to a new location without changing the width or height.
Choose from four object types:
- Oval – can be an oval or circle
- Rectangle – can be a rectangle or a square
- Rounded – a rounded rectangle or square
- Ellipse – an ellipsoid shape
The extent of the region is specified in x and y coordinates, where the X and Y entry boxes show the minimum and maximum in each direction.
When the Type = ‘Rectangle’, the minimum and maximum values define the size of the region. Here the x extent is from 0.0542 to 0.3208 and the y extent is from 0.5189, 0.9436.
The oval and rounded are also located based on the x and y range, but with smoothed or rounded corners.
When Type = ‘Ellipse’, the shape still stays within the defined x and y region but can be adjusted in terms of the width and slant using the Rotation parameter. When the Rotation is 1, the shape becomes a line, when the Rotation is negative the highest side is on the top left corner. Enter a value or use the slider to adjust.
Here you can see what happens when the maximum x value is increased and the Rotation is a negative value.
You can use global variables (e.g., slider, value) in the interval definition. Here the variable ‘Diameter’ is used for the maximum x and y extent.
NOTE: For a circle, set the x and y extent equal (as shown above) and set Force aspect ratio to 1 in the Axis settings.
Expand the command to change the type, color, and thickness of the region outline.
By default, the Fill is set to ‘Nothing’. Use the menu to change the fill to solid colors, patterns, gradients, or noise.
Include in …
Below the Fill options, there is an Include in range check box.
By default, Include in range is checked, meaning that the extent of the x and y-axis range will include the region. Thus, if you drag the shape out of the current axis range, the axis range will increase to include the range for the object.
Here the Include in range is box is unchecked, thus shapes can extend beyond the axes box without changing the range.
Clip with …
The Clip with axis range checkbox specifies whether or not to clip the shape when it does go beyond the boundary of the axis.
Here is the same image as above with the Clip with axis range box checked.
You do not need a separate command (Label command or Text command) to label the highlighted region. Instead, use the Label text box to enter a label for the region.
Use the Position menu to set the location relative to the region: Top, Left, Right, Bottom, or Center. Use the pixel offset (x,y) to the right of the Position to fine tune the location.
Here are the Label settings are outlined in red.