MCPcopy Create free account
hub / github.com/ColdGrub1384/Pyto / fully_overlaps

Method fully_overlaps

site-packages/matplotlib/transforms.py:502–521  ·  view source on GitHub ↗

Returns whether this bounding box overlaps with the other bounding box, not including the edges. Parameters ---------- other : BboxBase

(self, other)

Source from the content-addressed store, hash-verified

500 return self.fully_containsx(x) and self.fully_containsy(y)
501
502 def fully_overlaps(self, other):
503 """
504 Returns whether this bounding box overlaps with the other bounding box,
505 not including the edges.
506
507 Parameters
508 ----------
509 other : BboxBase
510 """
511 ax1, ay1, ax2, ay2 = self.extents
512 bx1, by1, bx2, by2 = other.extents
513 if ax2 < ax1:
514 ax2, ax1 = ax1, ax2
515 if ay2 < ay1:
516 ay2, ay1 = ay1, ay2
517 if bx2 < bx1:
518 bx2, bx1 = bx1, bx2
519 if by2 < by1:
520 by2, by1 = by1, by2
521 return ax1 < bx2 and bx1 < ax2 and ay1 < by2 and by1 < ay2
522
523 def transformed(self, transform):
524 """

Callers 2

subplotFunction · 0.80
subplot2gridFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected