Range Selector in Python with Matplotlib Widgets
Sometimes, when working with data structures such as Numpy Arrays or Pandas DataFrames, one wants to slice the data in order to perform specific operations in certain ranges of it. Both data structures provide excellent methods and functions to do that, and they only require a few lines of code. However, and specially inside of the Digital Signal Processing (DSP) field, one needs to perform several windowing operations before knowing which selection range is optimal. Running the same lines of code several times and modifying the selected data-points between tries until one finds the optimal selection is an inefficient way of performing this operation. A better way to approach these kind of operations is with a small graphical user interface that allows the user to select the points with the mouse and, at the same time, to observe the results of this selection. Therefore, several tries can be done in a few seconds, and the windowing process is simplified in several aspects. While w...


Comments
Post a Comment