MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / mean

Function mean

lib/matplotlib/tests/test_widgets.py:913–917  ·  view source on GitHub ↗
(vmin, vmax)

Source from the content-addressed store, hash-verified

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,

Callers

nothing calls this directly

Calls 1

set_dataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…