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

Function adjacent_values

galleries/examples/statistics/customized_violin.py:20–26  ·  view source on GitHub ↗
(vals, q1, q3)

Source from the content-addressed store, hash-verified

18
19
20def adjacent_values(vals, q1, q3):
21 upper_adjacent_value = q3 + (q3 - q1) * 1.5
22 upper_adjacent_value = np.clip(upper_adjacent_value, q3, vals[-1])
23
24 lower_adjacent_value = q1 - (q3 - q1) * 1.5
25 lower_adjacent_value = np.clip(lower_adjacent_value, vals[0], q1)
26 return lower_adjacent_value, upper_adjacent_value
27
28
29def set_axis_style(ax, labels):

Callers 1

Calls 1

clipMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…