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 9be6da4

Browse filesBrowse files
authored
Merge pull request #26768 from meeseeksmachine/auto-backport-of-pr-26700-on-v3.8.x
Backport PR #26700 on branch v3.8.x (Check type for set_clip_box)
2 parents 4c0c010 + 9663d4a commit 9be6da4
Copy full SHA for 9be6da4

File tree

1 file changed

+2
-1
lines changed
Filter options

1 file changed

+2
-1
lines changed

‎lib/matplotlib/artist.py

Copy file name to clipboardExpand all lines: lib/matplotlib/artist.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from .colors import BoundaryNorm
1616
from .cm import ScalarMappable
1717
from .path import Path
18-
from .transforms import (Bbox, IdentityTransform, Transform, TransformedBbox,
18+
from .transforms import (BboxBase, Bbox, IdentityTransform, Transform, TransformedBbox,
1919
TransformedPatchPath, TransformedPath)
2020

2121
_log = logging.getLogger(__name__)
@@ -763,6 +763,7 @@ def set_clip_box(self, clipbox):
763763
clipping for an artist added to an Axes.
764764
765765
"""
766+
_api.check_isinstance((BboxBase, None), clipbox=clipbox)
766767
if clipbox != self.clipbox:
767768
self.clipbox = clipbox
768769
self.pchanged()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.