Changeset 1546 for trunk


Ignore:
Timestamp:
03/27/09 15:55:42 (16 years ago)
Author:
Malte Marquarding
Message:

support cursor read out via matplotlib.figure.ginput

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/python/asaplotbase.py

    r1535 r1546  
    278278        self.register('button_press', position_disable)
    279279
     280
     281    def get_region(self):
     282        pos = []
     283        print "Please select the bottom/left point"
     284        pos.append(self.figure.ginput(n=1, show_clicks=False)[0])
     285        print "Please select the top/right point"
     286        pos.append(self.figure.ginput(n=1, show_clicks=False)[0])
     287        return pos
     288
     289    def get_point(self):
     290        print "Please select the point"
     291        return self.figure.ginput(n=1, show_clicks=False)[0]
    280292
    281293    def region(self):
Note: See TracChangeset for help on using the changeset viewer.