Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1488
News FAQ
Search Home


next up previous contents index
Next: imageprofilesupport.hasplotter - Function Up: imageprofilesupport - Tool Previous: imageprofilesupport.getx - Function


imageprofilesupport.getxy - Function



Package general
Module images
Tool imageprofilesupport


Get abcissa and ordinate coordinate of cursor


Synopsis
getxy(symbol, color)


Arguments

symbol in PGPlot symbol to mark location
    Allowed: Integer
    Default: 2 (cross)
color in PGPlot color of symbol
    Allowed: Integer
    Default: 1 (foreground)



Returns
Record



Description
Get the abcissa and ordinate coordinate of the cursor and mark the location. Returns a record with fields 'x' and 'y' (each holding a float).



Example
- im := image('ngc1313.cube')              
- csys := im.coordsys()                    
- shp := im.shape()                        
- p := imageprofilesupport(csys=csys, shp=shp, widgetset=dws)  
- p.setprofileaxis(axis);
- p.makemenus()
- pos := csys.referencepixel()             
- p.makeabcissa(pos)                       
- r := drm.box()                           
- p.makeordinate (im, r)                   
- xy := p.getxy()




next up previous contents index
Next: imageprofilesupport.hasplotter - Function Up: imageprofilesupport - Tool Previous: imageprofilesupport.getx - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-08-01