Cool, thanks. It looks like xinterval and yinterval don't allow any additional input, just the mouse click. So I'd need to stick with cursor(,,) for more complicated stuff. I can't tell from the help file, but it looks like the third (ch) parameter is just a pass-through for _pgcurs. It appears that ch == "A" if I just click the mouse with no keypress... do you know if that is the general behavior? Thanks, Rob Quoting John Houck <houck_at_email.domain.hidden > On Thu, Dec 20, 2007 at 11:08 -0500, rgibson_at_email.domain.hidden>> Tame question: Is there any way to get return code type information from >> cursor()? >> >> I'm using cursor to define ignore regions for fitting, so I keep clicking on >> pairs of points, and each pair of points is considered an ignore >> region. The >> trick is to know when I've finished selecting regions. >> >> I've decided that clicking on the same "pixel" twice (basically, >> double-clicking) indicates that I'm done. (Hitting "q" also >> apparently returns >> the position of the mouse, but I still have to hit it twice.) >> Alternately, I >> can click in special regions, but those are tricky to define. >> >> If there is a way to get this information, it would be useful for >> implementing >> state machines (such as the simple one I've described) that involve >> point-clicking. >> >> Thanks, >> Rob >> > > There are several alternatives: > (xmin, xmax) = xinterval; > (ymin, ymax) = yinterval; > cursor (&x, &y, &ch); > > For details, try: > isis> help cursor > > The lower-level pgplot cursor control function, _pgcurs, is > also available. > > Thanks, > -John > > > > ---- > You received this message because you are > subscribed to the isis-users list. > To unsubscribe, send a message to > isis-users-request_at_email.domain.hidden> with the first line of the message as: > unsubscribe > > ---- You received this message because you are subscribed to the isis-users list. To unsubscribe, send a message to isis-users-request_at_email.domain.hiddenwith the first line of the message as: unsubscribeReceived on Thu Dec 20 2007 - 13:11:00 EST
This archive was generated by hypermail 2.3.0 : Fri May 02 2014 - 08:35:45 EDT