8000 Add test testing #19296 · matplotlib/matplotlib@0153828 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0153828

Browse files
m4rekoAgriaddavek10tjr16
committed
Add test testing #19296
Co-authored-by: Agriad <agriad1@yahoo.com> Co-authored-by: davek10 <94davek@gmail.com> Co-authored-by: tjr16 <jerryaccount@126.com>
1 parent 9c98ab0 commit 0153828

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/tests/test_transforms.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,12 @@ def assert_bbox_eq(bbox1, bbox2):
460460
assert_array_equal(bbox1.bounds, bbox2.bounds)
461461

462462

463+
def test_bbox_frozen_copies_minpos():
464+
bbox = mtransforms.Bbox.from_extents(0.0, 0.0, 1.0, 1.0, minpos=1.0)
465+
frozen = bbox.frozen()
466+
assert_array_equal(frozen.minpos, bbox.minpos)
467+
468+
463469
def test_bbox_intersection():
464470
bbox_from_ext = mtransforms.Bbox.from_extents
465471
inter = mtransforms.Bbox.intersection

0 commit comments

Comments
 (0)
0