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

Function test_degenerate_polygon

lib/matplotlib/tests/test_patches.py:874–877  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

872
873
874def test_degenerate_polygon():
875 point = [0, 0]
876 correct_extents = Bbox([point, point]).extents
877 assert np.all(Polygon([point]).get_extents().extents == correct_extents)
878
879
880@pytest.mark.parametrize('kwarg', ('edgecolor', 'facecolor'))

Callers

nothing calls this directly

Calls 3

BboxClass · 0.90
PolygonClass · 0.90
get_extentsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…