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

Function test_no_offsets_datalim

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

Source from the content-addressed store, hash-verified

313
314
315def test_no_offsets_datalim():
316 # A collection with no offsets and a non transData
317 # transform should return a null bbox
318 ax = plt.axes()
319 coll = mcollections.PathCollection([mpath.Path([(0, 0), (1, 0)])])
320 ax.add_collection(coll)
321 coll_data_lim = coll.get_datalim(mtransforms.IdentityTransform())
322 assert_array_equal(coll_data_lim.get_points(),
323 mtransforms.Bbox.null().get_points())
324
325
326def test_add_collection():

Callers

nothing calls this directly

Calls 5

add_collectionMethod · 0.80
nullMethod · 0.80
axesMethod · 0.45
get_datalimMethod · 0.45
get_pointsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…