(rect, ax)
| 69 | |
| 70 | |
| 71 | def update_rect(rect, ax): # Let the rectangle track the bounds of the zoom axes. |
| 72 | xlo, xhi = ax.get_xlim() |
| 73 | ylo, yhi = ax.get_ylim() |
| 74 | rect.set_bounds((xlo, ylo, xhi - xlo, yhi - ylo)) |
| 75 | ax.figure.canvas.draw_idle() |
| 76 | |
| 77 | |
| 78 | # Connect for changing the view limits. |
nothing calls this directly
no test coverage detected
searching dependent graphs…