Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit9335670

Browse files
committed
Add check for offset text content before including in bbox
Match the pattern used for label (line 716) by checking that offsetTexthas actual content before including it in the bounding box calculation.This prevents including empty offset text in the bbox.
1 parent100a129 commit9335670

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/mpl_toolkits/mplot3d/axis3d.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ def get_tightbbox(self, renderer=None, *, for_layout_only=False):
708708
bb_1,bb_2=self._get_ticklabel_bboxes(ticks,renderer)
709709
other= []
710710

711-
ifself.offsetText.get_visible():
711+
ifself.offsetText.get_visible()andself.offsetText.get_text():
712712
other.append(self.offsetText.get_window_extent(renderer))
713713
ifself.line.get_visible():
714714
other.append(self.line.get_window_extent(renderer))

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp