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

Function handle_positions

lib/matplotlib/tests/test_widgets.py:1357–1361  ·  view source on GitHub ↗
(slider)

Source from the content-addressed store, hash-verified

1355 assert_allclose(slider.val, (0.1, 0.34))
1356
1357 def handle_positions(slider):
1358 if orientation == "vertical":
1359 return [h.get_ydata()[0] for h in slider._handles]
1360 else:
1361 return [h.get_xdata()[0] for h in slider._handles]
1362
1363 slider.set_val((0.4, 0.6))
1364 assert_allclose(slider.val, (0.4, 0.6))

Callers 1

test_range_sliderFunction · 0.85

Calls 2

get_ydataMethod · 0.45
get_xdataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…