Skip to content

Commit 90fcad6

Browse files
m4rekoAgriaddavek10tjr16
committed
Add overriding frozen function to Bbox
This function copies minpos when frozen is called. This commit resolves #19296. Co-authored-by: Agriad <agriad1@yahoo.com> Co-authored-by: davek10 <94davek@gmail.com> Co-authored-by: tjr16 <jerryaccount@126.com>
1 parent 0153828 commit 90fcad6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/matplotlib/transforms.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -807,6 +807,12 @@ def invalidate(self):
807807
self._check(self._points)
808808
super().invalidate()
809809

810+
def frozen(self):
811+
# docstring inherited
812+
frozen_bbox = super().frozen()
813+
frozen_bbox._minpos = self.minpos.copy()
814+
return frozen_bbox
815+
810816
@staticmethod
811817
def unit():
812818
"""Create a new unit `Bbox` from (0, 0) to (1, 1)."""

0 commit comments

Comments
 (0)