- nv_win
-
The nv_win command is used to control the spectral display widget.
It is always active on the "active window". The active window is the last
window in which the user clicked a mouse button. The active window can also
be set with the "nv_win act" command.
An alternative to using the "win" command is to execute the command
associated with each widget. For example, if a window exists named ".noesy.0"
a command exists of the same name, which takes all the same arguments as
the "win" command. In this latter format the command acts on the window of
the same name.
The arguments used in either format depend on the particular option, as described below. When the command is used to retrieve parameters the desired parameter is return as a TCL result and can be used in a "set" command. For example,
set limits [nv_win pt x].
Commands returning two or more parameters, for example "nv_win pt x", return the result as a TCL list.
For example,
"set xlimit0 [lindex [nv_win pt x] 0]" and
"set xlimit1 [lindex [nv_win pt x] 1]"
could be used to obtain the minimum and maximum limits for the x-axis.
- nv_win aclear ? clearMode?
-
Returns the autoclear mode of the active window. If the optional argument is specified the autoclear mode is set for the window is set. If clearMode is 1, the autoclear mode is set to TRUE and the window will be cleared each time a spectrum is drawn. If clearMode is 0 the autoclear mode is set to FALSE, and subsequent spectra will overlay the current spectra.
- nv_win act ? winName?
-
Returns the name of the active window. If the optional argument is specified the active window is set to the window named winName. For example, "nv_win act .b.0" sets window ".b.0" to be the active window.
- nv_win attributes
-
Display Attributes window.
BUG: Doesn't work
- nv_win clm ? contourLevelMultiplier?
-
Returns the contour level multiplier used in the active window. If the optional argument is specified the contour level multiplier in the active window is set to contourLevelMultiplier. For example, "nv_win clm 1.5", sets the contour level multiplier in active window to 1.5.
- nv_win clear
-
Clears the active window.
- nv_win copy
-
Copy data about active window into a buffer.
- nv_win cre winName ? wx wy x y ?
-
OBSOLETE: use Nv_MkSpectrum procedure instead.
- nv_win cross1 ? x y?
-
Returns the coordinates (in ppm) of CrossHair_1 in the active window. If the optional arguments are specified the position of CrossHair_1 is set to x, y. For example, "nv_win cross1 3.2 4.3", sets CrossHair_1 in the active window to (3.2,4.3) in ppms.
- nv_win cross1x ? x?
-
Returns the x coordinate (in ppm) of CrossHair_1 in the active window. If the optional argument are specified the x value of CrossHair_1 is set to x. For example, "nv_win cross1x 3.2", sets x value of CrossHair_1 in the active window to 3.2 in ppms. The y value is unchanged.
- nv_win cross1y ? y?
-
Returns the y coordinate (in ppm) of CrossHair_1 in the active window. If the optional argument are specified the y value of CrossHair_1 is set to y. For example, "nv_win cross1x 3.2", sets y value of CrossHair_1 in the active window to 3.2 in ppms. The x value is unchanged.
- nv_win cross2 ? x y?
-
Returns the coordinates (in ppm) of CrossHair_2 in the active window. If the optional arguments are specified the position of CrossHair_1 is set to x, y. For example, "nv_win cross2 3.2 4.3", sets CrossHair_2 in the active window to (3.2,4.3) in ppms.
- nv_win cross2x ? x?
-
Returns the x coordinate (in ppm) of CrossHair_2 in the active window. If the optional argument are specified the x value of CrossHair_2 is set to x. For example, "nv_win cross2x 3.2", sets x value of CrossHair_2 in the active window to 3.2 in ppms. The y value is unchanged.
- nv_win cross2y ? y?
-
Returns the y coordinate (in ppm) of CrossHair_2 in the active window. If the optional argument are specified the y value of CrossHair_2 is set to y. For example, "nv_win cross2x 3.2", sets y value of CrossHair_2 in the active window to 3.2 in ppms. The x value is unchanged.
- nv_win dau
-
OBSOLETE: Use Nv_MkSpectrum or Nv_MkDaughter?? command instead.
- nv_win dataset ? datasetName?
-
Returns the name of the dataset used in the active window. If the optional argument is specified the dataset for the active window is set to datasetName. For example, "nv_win dataset noesy.mat", sets the dataset for the active window to "noesy.mat". The specified dataset must have been opened previously.
- nv_win del
-
Delete the active window.
OBSOLETE: use destroy windowName
- nv_win dim ? displayDimType?
-
Returns the display type as 0 (1Dx), 1 (1Dy) or 2 (2D). If the optional displayDimType argument the display type is set as specified.
- nv_win dispeaks ? peakListName?
-
Returns the name of the peak list to be displayed in the active window. If the optional argument is specified the display peak list for the active window is set to peakListName. For example, "nv_win dispeaks list1", sets the peak list for the active window to "list1". Whenever this window is redrawn the peaks from the specified list will be displayed. To cancel peak display for the window use the "peak dispeaks none". See also the PEAK ATTRIBUTES PANEL.
- nv_win draw
-
Draws the current window.
- nv_win expand
-
Draws expansion (area in cursor box) of active peak.
- nv_win full
-
Draws full expansion of active window.
- nv_win grid
-
The grid command is a toggle command. If grids are off in the active window it causes a grid of points to be drawn in the active spectral window. The grid of points will be drawn each time the window is redrawn. If grids are currently on in the active window the grid command sets the window so the grid is not drawn when the window is redrawn. Each point in the grid is located at the position of a point in the file.
BUG: Not working
- nv_win jmode ? jmodType?
-
Returns the method for displaying peaks that have J-values (coupling constants) greater than 0.0. With jmodType 0, a single peak is displayed with the J-value added to the peak width. With jmodType 1, two peaks are displayed with their centers shifted by the J-value.
CONFIRM THIS
- nv_win lvl ? Level?
-
Returns the contour level of the active window. If the optional argument is specified the contour level of the active window is set to Level. For example, "nv_win lvl 0.2" sets the contour level in active window to 0.2.
- nv_win menu menuItem ? entryNum?
-
OBSOLETE:
- nv_win mouse mouseKey mouseAction procName
-
OBSOLETE
- nv_win nnv_win
-
Return the number of spectral windows currently open.
- nv_win negcolor ? colorName?
-
Returns the number corresponding to the color used for negative contours in the active window. If the optional argument is specified the color for negative contours in the active window is set to colorName. For example, "nv_win negcolor 3" sets the color for negative contours in the active window to 3.
- nv_win inv_win winNum
-
Make the specified window (by window number) the active window. The window number runs from 0 to nwin-1 where nnv_win is the number of spectral windows (obtained with "nv_win nwin"). Windows are numbered sequentially in the order in which they were created.
BUG: Not working
- nv_win nlvl ? nLevels?
-
Returns the number of contour levels used in the active window. If the optional argument is specified the number of contour levels in the active window is set to nLevels. For example, "nv_win nlvl 5", sets the number of contour levels in active window to 5.
- nv_win paste
-
Paste data from the copy buffer into active window and draw contour plot.
- nv_win peak_col_off ? colorName ?
-
Returns the number of the color used to draw peak boxes that are not on (or between, if a range of planes is used) the displayed plane. If the optional argument is specified the number of color is set to that value in the active window. See also the PEAK ATTRIBUTES PANEL.
BUG: "none draws white"
BUG: "doesn't update attribute panel"
- nv_win peak_col_on ? colorName ?
-
Returns the number of the color used to draw peak boxes that are on (or between, if a range of planes is used) the displayed plane. If the optional argument is specified the value is set in the active window. See also the PEAK ATTRIBUTES PANEL.
BUG: "doesn't update attribute panel"
- nv_win peak_col_type ? arg ?
-
If set to the value 0, peak boxes are colored according to their closeness to the display plane, as determined by the peak_off, peak_col_off, and peak_col_on parameters. If set to the value 1, peak boxes are colored according to the peak labels. If any peak dimension has a "?", in the label field the peak boxes is colored as specified by the peak_col_off argument, otherwise it is colored as specified with the peak_col_on. See also the PEAK ATTRIBUTES PANEL.
BUG: "doesn't update attribute panel"
- nv_win peak_dis_type ? arg ?
-
Returns a number (0/1) corresponding to the manner in which peaks from the peak list are displayed in the spectral window. If set to 0, peaks are drawn as boxes with widths corresponding to the peak width. If the value is 1, peaks are drawn as simulated contours. The peak width parameter is then assumed to be the line width. The number of contours and their levels are determined by the "nv_win nlvl", "nv_win lvl", and "nv_win clm" commands. If the optional argument is specified the value is set in the active window. See also the PEAK ATTRIBUTES PANEL.
- nv_win peak_off ? nPlanes ?
-
This parameter determines which peaks are displayed on 3 or 4 dimensional spectra. If the plane of a peak is closest to the display plane, it is displayed with the color specified by the peak_col_on parameter. If it is not on the display plane, but is within nPlanes of the display plane it is displayed with the color specified by the peak_col_off paramter. Otherwise it is not displayed. See also the PEAK ATTRIBUTES PANEL.
- nv_win peak_lab_type ? labType ?
-
This parameter determines what type of label is drawn next to each peak box. The choices are as follows:
0 The peak number.
1 The peak labels (for all peak dimensions).
2 The residue number of the peak (for all peak dimensions that have unique values.
3 The atom names of the peak (for all peak dimensions).
- nv_win peakp
-
Displays the peakpick panel.
BUG: Not working
- nv_win plot ? all?
-
Make hardcopy plot of contour plot of active region. If the all argument is included all daughter windows of the current plot are plotted as well.
BUG: All mode not yet working in Version 3.0
- nv_win posi ? x y ?
-
OBSOLETE
- nv_win poscolor ? colorName?
-
Returns the number corresponding to the color used for positive contours in the active window. If the optional argument is specified the color for positive contours in the active window is set to colorName. For example, "nv_win poscolor 3" sets the color for positive contours in the active window to 3.
- nv_win previous
-
Draw previous expansion (up to 8 previous expansion sare stored.)
- nv_win search
-
Search for peaks (local maxima) perpendicular to plane at cursor position in the 3D spect rum in active window. This is good for finding what plane a peak is actually in when multiple planes have been displayed in spectral window.
BUG: Not yet working in Version 3.0
- nv_win showpeaks
-
Draw boxes in active window at positions of peaks in the active peak list.
BUG: "Says invalid peaklist"
- nv_win siz ? x y?
-
Returns the size of the current window. If the optional arguments x and y are specified the size of the active window is set to x pixels wide by y pixels high. For example, "nv_win siz 300 400" will change the active window size to 300 by 400 pixels. BUG NOTE: Does not return the size, but will set it.
OBSOLETE in version 3.0
- nv_win swap
-
Swap x and y contour limits and redraw contour plot.
- nv_win wx ? xMin xMax?
-
Returns the x limits of the area of the active window that is used to draw spectra in. If the optional arguments are specified the x limits of the area range from xMin to xMax. Limits are returned and specified as fractions of the window. For example, "nv_win wx 0 0.5" sets the plotting area of the active window to the left half of the window.
- nv_win wy ? yMin yMax?
-
Returns the y limits of the area of the active window that is used to draw spectra in. If the optional arguments are specified the y limits of the area range from yMin to yMax. Limits are returned and specified as fractions of the window. For example, "nv_win wy 0 0.5" sets the plotting area of the active window to the top one-third.
- nv_win xdim dimNum
-
Sets the x display dimension of the active window to dimNum.
- nv_win x ? firstColumn lastColumn?
-
OBSOLETE: (but still functional) Use "nv_win pt x" or "nv_win ppm x".
Returns the plot limits on the x axis in the active window. If the firstColumn and lastColumn arguments are specified the plot limits for the axis in the active window are set to firstColumn and lastColumn. If the argment is a number it is interpreted as a chemical shift in ppm. If the argument is a number followd by a "p", it is interpreted as a column number in points. For example, "nv_win x 100p 6.3" sets the first column to point 100 and the last column to the point closest to 6.3 ppm.
- nv_win xaxis ? bottomAxis topAxis?
-
OBSOLETE: (but still functional) Use "nv_win axis x"
Returns a 0 or 1 specifying whether or not the bottom and top axis labels and tick marks should be drawn. If the bottomAxis and topAxis arguments are specified the respective axes are turned on are off as specified. The values are specified as boolean values (0/1, yes/no, on/off or true/false).
- nv_win xbor ? leftBorder rightBorder?
-
OBSOLETE: (but still functional) Use "nv_win border x"
Returns the borders for the left and right sides of the plot region in the active window. If the leftBorder and rightBorder arguments are specified the left and right borders are set to the specified values. The values are specified in units of pixels.
- nv_win y ? firstRow lastRow?
-
OBSOLETE: (but still functional) Use "nv_win pt y" or "nv_win ppm y".
Returns the plot limits on the x axis in the active window. If the firstRow and lastRow arguments are specified the plot limits for the axis in the active window are set to firstRow and lastRow. If the argument is a number it is interpreted as a chemical shift in ppm. If the argument is a number followd by a "p", it is interpreted as a Row number in points. For example, "nv_win x 100p 6.3" sets the first row to point 100 and the last row to the point closest to 6.3 ppm.
- nv_win yaxis ? leftAxis rightAxis?
-
OBSOLETE: (but still functional) Use "nv_win axis y"
Returns a 0 or 1 specifying whether or not the left and right axis labels and tick marks should be drawn. If the leftAxis and rightAxis arguments are specified the respective axes are turned on are off as specified. The values are specified as boolean values (0/1, yes/no, on/off or true/false).
- nv_win ybor ? bottomBorder topBorder?
-
OBSOLETE: (but still functional) Use "nv_win border y"
Returns the borders for the bottom and top of the plot region in the active window. If the bottomBorder and topBorder arguments are specified the bottom and top borders are set to the specified values. The values are specified in units of pixels.
- nv_win ydim dimNum
-
Sets the y display dimension of the active window to dimNum.
- nv_win z ? firstPlane lastPlane?
-
OBSOLETE: (but still functional) Use "nv_win pt z" or "nv_win ppm z".
Returns the first and last planes to be drawn in the active window for dimension z. If the firstPlane argument is specified, the first and last planes are both set to firstPlane. Thus only the specified plane will be drawn. If both the firstPlane and lastPlane arguments are specifed the the first plane will be set to firstPlane and the last z plane to lastPlane. When contour plot is performed all planes form the first to last, inclusive, will be drawn. If the argment is a number it is interpreted as a chemical shift in ppm. If the argument is a number followd by a "p", it is interpreted as a plane number. For example, "nv_win z 5p 50.3" sets the first plane to plane 5 and the last plane to the plane closest to 50.3 ppm.
- nv_win zdim dimNum
-
Sets the zdisplay dimension of the active window to dimNum.
- nv_win z2 ? firstPlane lastPlane?
-
OBSOLETE: (but still functional) Use "nv_win pt z2" or "nv_win ppm z2".
Returns the first and last planes to be drawn in the active window for dimension z2 (the fourth dimension). If the firstPlane argument is specified, the first and last planes are both set to firstPlane. Thus only the specified plane will be drawn. If both the firstPlane and lastPlane arguments are specifed the the first plane will be set to firstPlane and the last z plane to lastPlane. When contour plot is performed all planes form the first to last, inclusive, will be drawn. If the argment is a number it is interpreted as a chemical shift in ppm. If the argument is a number followd by a "p", it is interpreted as a plane number. For example, "nv_win z 5p 50.3" sets the first plane to plane 5 and the last plane to the plane closest to 50.3 ppm.
- nv_win z2dim dimNum
-
Sets the x display dimension of the active window to dimNum.
nv_win open
- nv_win center
-
- nv_win zoom in|out
-
- nv_win shift
-
- nv_win view
-
Same as "nv_win expand"
- nv_win edit
-
Same as "nv_win copy"
- nv_win peakattributes
-
Display "PEAK ATTRIBUTES panel".
- nv_win name
-
Returns name of current window.
- nv_win scale1d ? scaleValue ?
-
Returns the scale value used for drawing 1D spectra (including slices). If
the optional argument, scaleValue, is included the command sets the scale
value to that specified.
- nv_win xoffset offsetValue
-
Returns the offset value used for drawing 1D spectra parallel to the
x axis (including slices). The value can range from 0 to 1 and specifies
the position of the zero value for the spectra. If
the optional argument, offsetValue, is included the command sets the offset
value to that specified.
- nv_win yoffset offsetValue
-
Returns the offset value used for drawing 1D spectra parallel to the
y axis (including slices). The value can range from 0 to 1 and specifies
the position of the zero value for the spectra. If
the optional argument, offsetValue, is included the command sets the offset
value to that specified.
- nv_win mode ? live|record|play ?
-
Returns the drawing mode.
Live: Draw spectra using data read directly from the data matrix.
Record: Same as live, but also record the vectors of the contour plot
into a contour file.
Play: Draw spectra using prerecorded vectors stored in a contour file.
- nv_win slice ? axis ? ? on|off ?
-
Returns the boolean state of the cursor slices. If a slice is turned on
then a realtime vector slice is drawn across the spectra in a direction
specified by the axis. If the option on|off value is specified then set
the state to the value specified.
For example, to draw slices parallel to the x axis when the cursor is moved:
nv_win slice x on
- nv_win pt ? axis ? ? minValue maxValue ?
-
Returns the plot limits, in units of points, for the specified axis.
If the optional minValue and maxValue arguments are included, then set
the plot limits to those specified.
For example:
nv_win pt z 10 11
- nv_win ppm
-
Returns the plot limits, in units of ppm, for the specified axis.
If the optional minValue and maxValue arguments are included, then set
the plot limits to those specified.
For example:
nv_win x 3.4 8.2
- nv_win ppmMax ? axis ?
-
Returns the minimum and maximum plot limits, in units of ppm, for the specified dimension.
- nv_win axis ? axis ? ? axis1 axis2 ?
-
Returns a 0 or 1 specifying whether or not the bottom and top axis (and left and right) labels and tick marks should be drawn. If the axis1 and axis2 arguments are specified the respective axes are turned on are off as specified. The values are specified as boolean values (0/1, yes/no, on/off or true/false).
For example, to turn the labels and tic marks for both the bottom and top
axis off:
nv_win axis x 0 0
- nv_win border ? axis ? ? border1 border2 ?
-
Returns the borders for the left and right sides, or top and bottom, of the plot region in the active window. If the border1 and border2 arguments are specified the appropriate borders are set to the specified values. The values are specified in units of pixels.
- nv_win defer ? on|off?
-
If set to "On" then don't defer drawing the spectrum until set to "Off"
- nv_win lab axisName axisLabel
-
Returns the label for the specified axis of the spectrum. If the optional argument 'axisLabel' is specified then set the label to the specified value.
- nv_win ndim
-
Return the number of dimensions of the matrix currently displayed in the window.
- nv_win winpeak
-
CONFIRM