Extract Dialog

Inheritance diagram of extractdialog
class ExtractDialog(root, shape, filename, x_range, y_range)[source]

Displays a subplot containing the data bounded by a shape

create_subplot()[source]

Read coordinate data from the shape to determine the new bounds of the subplot. Shape bounds are taken with simple max() and min() functions, however determining their location within the time array is much more difficult as matplotlib only handles real locations, not relative to the numpy data arrays. To solve this issue an algorithm called interpolation_search is used, which computes the nearest time coordinate for bounding, and with a complexity of only O(log log(n))