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

Function test_get_segments

lib/matplotlib/tests/test_collections.py:1272–1278  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1270
1271
1272def test_get_segments():
1273 segments = np.tile(np.linspace(0, 1, 256), (2, 1)).T
1274 lc = LineCollection([segments])
1275
1276 readback, = lc.get_segments()
1277 # these should comeback un-changed!
1278 assert np.all(segments == readback)
1279
1280
1281def test_set_offsets_late():

Callers

nothing calls this directly

Calls 2

get_segmentsMethod · 0.95
LineCollectionClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…