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


next up previous contents index
Next: pgplotwidget.addredrawfunction - Function Up: pgplotwidget - Tool Previous: pgplotwidget.lastchange - Function


pgplotwidget.curs - Function



Package display
Module plotter
Tool pgplotwidget


Get a key and position


Synopsis
curs(x, y)


Description
This function emulates the standard PGPLOT curs() event. It returns a record of the form:
[ok=bool, x=float, y=float, ch=string]
The ``ch'' field is the key that the user struck on the keyboard. Note that it BLOCKS until a key is pressed on the plot area. Setting a callback is usually more flexible than this routine since it tolerates inaction on the users part better.

The function may be passed a position where the programmer guesses that the user will want to position the cursor. It defaults to (0,0).



Arguments

x   estimated X position
    Allowed: float
    Default: 0
y   estimated Y position
    Allowed: float
    Default: 0


Returns
record




next up previous contents index
Next: pgplotwidget.addredrawfunction - Function Up: pgplotwidget - Tool Previous: pgplotwidget.lastchange - 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-10-15