NMRWish Built-In TCL Functions
spec2pix: Convert a location in spectral units such as PPM to a pixel location in a spectral drawing area and a particular region-of-interest (ROI). See also: defineCell, readROI, drawROI.
spec2pix: Convert Spectral Location to a Graphics Coord in Pixels
Flag |
Argument |
Default |
Description |
-x |
x0 |
0 |
Spectrum X Coord. Units: Pts Hz PPM %. |
-y |
y0 |
0 |
Spectrum Y Coord. Units: Pts Hz PPM %. |
Graphics Cell Specification:
-win |
wID |
1 |
Canvas Window ID. |
-cellX |
cellXID |
|
Cell ID for Graphic X Coord. |
-cellY |
cellYID |
|
Cell ID for Graphic Y Coord. |
-cell |
cellID |
|
Sets Both -cellX and -cellY. |
-clip |
|
|
Clip to Extent of Cell. |
-noclip |
|
|
No Clipping. |
Spectral Region-of-Interest (ROI) Specification:
-roiX |
roiXID |
|
ROI ID for Graphic X Coord. |
-roiY |
roiYID |
|
ROI ID for Graphic Y Coord. |
-roi |
roiID |
|
Sets Both -roiX and -roiY. |
-roiRef |
roiID |
|
Same as -roi. |
|
|