next up previous contents index
Next: The Set Color Button: Up: The Attributes Menu: Set Previous: The Set Font Button:   Contents   Index


The Set Grid Button: Set Grid Parameters

The Set Grid command in the Attributes Menu of the main window and subwindows brings up a pop-up for setting grid parameters. This allows setting of the grid properties for the present display mode, for normal viewing or for printer output if the Print Control Panel is visible.

If the Show button is active, the grid will be visible. Otherwise, it will not be visible. If the On Top button is active, the grid will be drawn last, after all geometry. Otherwise, it will be drawn first, in which case it is more likely to be obscured by the geometry. The Store and Recall buttons allow a set of grid parameters to be saved in an internal register, to be recalled as needed.

A radio button group is provided to set the presentation style of the axes in physical mode. The choices are No Axes, Plain Axes, and Mark Origin. The Mark Origin choice is the default. The Plain Axes choice does away with the small box at the origin, showing the axes as simple lines. The No Axes choice suppresses the axes entirely. In electrical mode, the axes are always suppressed.

There are text entry areas for the grid resolution and snap number. The resolution is the spacing of the grid lines, in microns. The snap number specifies the possible coordinates, i.e., the coordinate read by Xic when the pointer is in the vicinity. If the snap number is positive, it represents the number of snap locations per grid interval. For example, if 1, the snap locations are on the grid lines, if 2, the snap locations are on the grid lines and midway between the grid lines. If the snap number is negative, it represents the number of grid lines per snap line.

The line style editor allows the user to specify the patterning of the lines used to form the grid. There are three ``radio buttons'': Solid, Dots, and Textured. Choosing Solid will cause the grid to use continuous lines. The Dots option will use a grid consisting of a small dot at each grid point. If Textured is chosen, a user-specified patterned line will be used, and the editing windows become visible. The upper window is a sample of the current line style. The lower window allows the user to set the line style by clicking.

The line pattern starts at the left set bit (blue area) and extends to the right of the display. The pattern is used to ``tile'' the line. The left part of the display is shown in gray to indicate that it is not part of the line style mask. Clicking in this window with button 1 will toggle the bit. Button 2 will clear the bit, and button 3 will set the bit. Multiple bits can be set or toggled by dragging. The line in the preview window will reflect changes in the pattern.

Pressing the Apply button will actually save the new grid parameters in Xic, and redraw the windows.

The Ctrl-G key sequence is mapped by default to a command which also allows certain grid parameters to be set with a command-line interface. Thus, simple keyboard commands can be employed to change grid spacing and visibility. This may be a quicker than the pop-up for simple tasks such as turning the grid on and off. For example, to set the grid spacing to 2.5 microns, one types ``Ctrl-G 2.5 Enter''.

See also the description of the !rg and !sg commands. These can be used to save and restore the grid from registers.


next up previous contents index
Next: The Set Color Button: Up: The Attributes Menu: Set Previous: The Set Font Button:   Contents   Index
Stephen R. Whiteley 2006-10-23