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

Commitbde95b2

Browse files
authored
Merge pull request#16932 from meeseeksmachine/auto-backport-of-pr-16929-on-v3.2.x
Backport PR#16929 on branch v3.2.x (tk: Resize the canvas, not the figure.)
2 parents2e92602 +89bcf96 commitbde95b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/_backend_tk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def _get_toolmanager(self):
460460
returntoolmanager
461461

462462
defresize(self,width,height):
463-
self.canvas._tkcanvas.master.geometry("%dx%d"% (width,height))
463+
self.canvas._tkcanvas.configure(width=width,height=height)
464464

465465
ifself.toolbarisnotNone:
466466
self.toolbar.configure(width=width)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp