Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7c535fb

Browse filesBrowse 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 7c535fb
Copy full SHA for 7c535fb

File tree

Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-0
lines changed

‎lib/matplotlib/transforms.py

Copy file name to clipboardExpand all lines: lib/matplotlib/transforms.py
+6Lines 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 = Bbox(self.get_points().copy())
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.