(vmin, vmax)
| 911 | fig.canvas.blit(fig.bbox) |
| 912 | |
| 913 | def mean(vmin, vmax): |
| 914 | # Return mean of values in x between *vmin* and *vmax* |
| 915 | indmin, indmax = np.searchsorted(x, (vmin, vmax)) |
| 916 | v = values[indmin:indmax].mean() |
| 917 | ln2.set_data(x, np.full_like(x, v)) |
| 918 | |
| 919 | span = widgets.SpanSelector(ax, mean, direction='horizontal', |
| 920 | onmove_callback=mean, |
nothing calls this directly
no test coverage detected
searching dependent graphs…