Inset plots subroutine (IS)
Note that inset plots can be created only with 1D data.
This subroutine allows the user to define multiple inset plots, each of which is "tied" to a point in the spectrum, but can be repositioned with the mouse. IS enters the routine (also from the Tools menu). Inset plots can also be accomplished from the MetaObjects routine, but the IS routine is more flexible and should work better for most situations. Note that the IS routine does not display integrals or peak labels on the inset plot, but this can be done with the MO routine.
The procedure for selecting the spectral region for the inset changed as of 7/13/05. Previously, the spectrum was first expanded to display the desired region, then the IS routine was initiated and the inset created with the A command, as described below. For copies of NUTS compiled on or after 7/13/05, an alternate method is now available, using a "rubber band" box defined by the cursor to select the region for the inset, as shown below. Either method can be used.
Note that, with this change, any mouse clicks on the screen while in the IS routine will create a new inset (unless the mouse is within the bounds of a previously created inset).
Once the inset is created, it can be moved and resized as previously.
The original method of defining the inset is illustrated below:
Begin by selecting, with Zoom, the region that will be the inset. It works best NOT to expand to these limits, so type Ctrl-F before entering the IS routine.
Enter the IS subroutine from the Tools menu or by typing IS.
Typing A (or selecting Add region from the Edit menu) creates the inset, which can be moved and resized with the mouse.
Display of all defined insets can be toggled on and off with S or from the View menu.
Clicking on a chosen inset with the right mouse button displays this box, allowing the properties of the inset to be set. The axis font can be set by clicking on Choose Font. The axis units can be selected independently for each inset.
The scale of the inset can be set to a specific Hz/cm. Since the frequency range of the inset has already been fixed, entering a value here will cause the size of the inset to be changed. This could result in the inset being displayed with an undersireable size (tiny, or off the screen), in which case, the scaling value needs to be reset.
The Printer Fudge box lets you enter a correction factor so that the inset plot is correctly scaled on your printer. Once this fudge factor is determined, it can be set in the nuts.ini file.
It is important to understand that each inset is "attached" to the data point corresponding to its left edge. Therefore, its position on the screen will change as the displayed region is changed. For the case shown above, if the zoom limits are changed to display from 2 to 0 ppm, the inset will not be displayed.
Any DC offset the displayed spectrum had when the inset was created is carried over to the inset. In addition, the offset (of the inset’s spectrum relative to its axis) can be adjusted after the inset is created, using the "[" and "]" keys to increase and decrease the offset for the currently selected inset.
<Enter> exits the subroutine, leaving the insets displayed.
The insets remain defined when a new spectrum is opened. Each inset is dynamically created, so that it displays the data in the region selected. If the data in that region changes, so does the inset. For this reason, it is usually best to clear all insets before opening a new file.
The insets are saved when the file is saved, and can be recalled when the file is opened, using the TA command or by selecting Auto Tailer Read from the File menu.
Arguments for inset plots have been added to allow the user to change the default position and size of insets when they are added. The values for the arguments are fractions of the screen’s size. For example, "IS xpos 0.01" would change the default position of the insert to be 1 percent of the screen from the left. The syntax is:
IS xpos fraction
IS ypos fraction
IS xscale fraction
IS yscale fraction
where "fraction" is entered as a number between 0 and 1. These commands set the size/position; they do not create an inset. (0,0) is the top, left corner of the screen.
These commands can be used in macros, for example, this section of a macro initializes insets to be positioned in the top, left corner of the screen and to be 50% of the screen size in each dimension:
; initialize size & position for IS inset
is xsize .5,
is ysize .5,
is xpos 0,
is ypos 0,
- A — Add new inset
C — Clear all insets
S — toggle on/off display of all insets
click right mouse button on an inset to edit its properties
<Enter> to exit the subroutine
Last updated: 7/13/05.