Rectangle to select area in plot and find maximum value

Viewed 3644

I am looking for advice on where to begin to code my latest project.

I would like to be able to draw slightly transparent rectangles on a matplotlib plot and return the values within this square. The end goal of this project is to return the largest value in this area and use it for further analysis later.

This is something I have not personally seen done before and have no clue where to start with this project. I am hoping to be pointed in the right direction with this code.

Thank you for any advice you can give.

example of final look.

1 Answers
Related