def pick_intervals(num=1): ''' Return list of Intervals picked from current plot ''' return map(Interval._make, Figure.fromCurrent().pickRegions(num))
def pick_pts(num=1): return Figure.fromCurrent().pickPoints(num)